Program crash: GC destroys an object unexpectedly

eugene dee0xeed at gmail.com
Thu Sep 23 18:49:20 UTC 2021


On Thursday, 23 September 2021 at 18:43:36 UTC, Steven 
Schveighoffer wrote:
> With dmd -O -inline, there is a chance it will be collected. 
> Inlining is key here.

never mind, GC.addRoot() looks more trustworthy, anyway :)



More information about the Digitalmars-d-learn mailing list