[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:18:40 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=19119
--- Comment #11 from kinke at gmx.net ---
(In reply to Manu from comment #10)
> or maybe there's some opportunity to make gcnew wrap C++ class
> allocations in a thin D class that forwards the destructor?
I guess something like having specially-marked GC blocks for C++ objects and
gcnew prepending the C++ dtor (or D ClassInfo) address right before the actual
class instance would work => 1 pointer overhead per GC-allocated C++ object to
make it destructible during garbage collection.
--
More information about the Digitalmars-d-bugs
mailing list