druntime thread (from foreach parallel?) cleanup bug

Ali Çehreli acehreli at yahoo.com
Tue Nov 1 17:37:57 UTC 2022


On 11/1/22 10:27, H. S. Teoh wrote:

 > Maybe try running Digger to reduce the code for you?

Did you mean dustmite, which is accessible as 'dub dustmite 
<destination-path>' but I haven't used it.

My guess for the segmentation fault is that the OP is executing 
destructor code that assumes some members are alive. If so, the code 
should be moved from destructors to functions to be called like 
obj.close(). But it's just a guess...

Ali



More information about the Digitalmars-d-learn mailing list