Program crash: GC destroys an object unexpectedly
eugene
dee0xeed at gmail.com
Mon Sep 13 17:54:43 UTC 2021
On Monday, 13 September 2021 at 17:40:41 UTC, user1234 wrote:
> The problems seems to lies in `newSignal()` which "would" not
> allocate using the GC.
final Signal newSignal(int signum) {
Signal sg = new Signal(signum);
sg.owner = this;
sg.number = sg_number++;
sg.register();
return sg;
}
full src is here
http://zed.karelia.ru/0/e/edsm-in-d-2021-09-10.tar.gz
More information about the Digitalmars-d-learn
mailing list