[Issue 19119] App crashes with strange behavior of ctors/dtors from CPP

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 27 13:07:17 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=19119

--- Comment #7 from Vladimir Marchevsky <vladimmi at gmail.com> ---
Sounds logical. I've tried to additionally export Bar, map it in D and also to
add Foo::a and Foo::b to mapping to make it full. Problem has gone and it seems
to work correct without crashes or memory leaks.

But how does it happen to work under some conditions before (like with
non-virtual dtor)? Does "virtual" change used methods to create/delete objects
somehow or was that sort of random luck?..

--


More information about the Digitalmars-d-bugs mailing list