dont understand this

collerblade via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 24 22:48:41 PDT 2016


> 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.

Yes i am a ware about that fact, but when i set "running" to 
static, the solution WORKS. That is what the question is.




More information about the Digitalmars-d mailing list