Function Pointer Not Working

Marcone marcone at email.com
Thu Nov 19 16:16:27 UTC 2020


On Thursday, 19 November 2020 at 15:51:09 UTC, Kagamin wrote:
> The delegate is stored on the stack of the calling thread, the 
> created thread loads it from there, but the calling thread 
> doesn't wait for that and clobbers the stack right away. If you 
> were lucky your code would crash.

The thread that I do wait ultil function is finished. Using a 
while with 3 seconds to verify if thread id is in running list, 
and break if not finishing owner thread.


More information about the Digitalmars-d-learn mailing list