[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 21:24:04 UTC 2018


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

--- Comment #13 from Manu <turkeyman at gmail.com> ---
(In reply to kinke from comment #12)
> Something very similar is apparently already done for GC-allocated structs -
> if they have a destructor, the TypeInfo pointer is stored right after the
> actual instance, and a specially marked GC block is requested; see
> rt.lifetime._d_newitemU().

Right. I think gcnew should implement a trick like that for C++ objects.

I don't have time to look at it now though.
Super-busy, which is why I was rushing to get all my C++ stuff in a month back.

--


More information about the Digitalmars-d-bugs mailing list