dont understand this
Meta via Digitalmars-d
digitalmars-d at puremagic.com
Sat Sep 24 21:25:59 PDT 2016
On Saturday, 24 September 2016 at 21:56:38 UTC, rikki cattermole
wrote:
> threadFunc contains a reference to MyClass in the form of the
> 'this' pointer and so the GC sees this and never deallocates
> the MyClass instance to begin with.
Not to mention that destructors are not guaranteed to ever be
called for classes and heap-allocated structs.
More information about the Digitalmars-d
mailing list