Program crash: GC destroys an object unexpectedly

Adam D Ruppe destructionator at gmail.com
Tue Sep 14 12:53:27 UTC 2021


On Tuesday, 14 September 2021 at 12:42:51 UTC, eugene wrote:
> I understand your idea, but even if this will help, the question
> remains - why that particular object is so special for GC.

I had a problem just like this before because I was sending 
objects through the pipe. And while they were in the pipe - after 
send but before receive on the other side - it was liable to be 
collected.

idk your code though if you have a separate reference to the 
object you should be ok.

but here's the comment from my code when i broke it

https://github.com/adamdruppe/arsd/blob/master/eventloop.d#L180


More information about the Digitalmars-d-learn mailing list