how to debug memory errors

thedeemon via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Nov 6 20:01:13 PST 2016


On Monday, 7 November 2016 at 02:22:35 UTC, Steven Schveighoffer 
wrote:
> OP: it's not legal to destroy or even access GC allocated 
> members in a destructor. The GC may have already destroyed that 
> data.

Isn't destroy() fine there? It doesn't call destructors for 
already destroyed objects, so I guess it should be safe. 
(assuming the destructors don't do any allocations)



More information about the Digitalmars-d-learn mailing list