Program crash: GC destroys an object unexpectedly

eugene dee0xeed at gmail.com
Mon Sep 13 19:38:09 UTC 2021


On Monday, 13 September 2021 at 18:45:22 UTC, jfondren wrote:
> Instead of using a temporary EpollEvent array in 
> EventQueue.wait, you could make the array an instance variable 
> and have registerEventSource populate it directly

Actually, initial version of all that was using array,
allocated in constructor, but then (when struggling with GC)
I thought that array in stack will press GC less...

... It seems I said something stupid just now )




More information about the Digitalmars-d-learn mailing list