[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 19:07:34 UTC 2018


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

--- Comment #10 from Manu <turkeyman at gmail.com> ---
Right, and that goes back to my original point; the GC doesn't know the memory
is a C++ class, and doesn't know how to destruct.

So either, use the GC under the assumption the destructor will never be
called... or maybe there's some opportunity to make gcnew wrap C++ class
allocations in a thin D class that forwards the destructor?

--


More information about the Digitalmars-d-bugs mailing list