Can't find windows' CreateThread function / concurrency.spawn crashes host application

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jan 1 17:44:46 PST 2016


On Saturday, 2 January 2016 at 00:32:20 UTC, alkololl wrote:
>  Why is that?

I'm not sure, but in the switch you posted, you didn't handle the 
DLL_THREAD_ATTACH and DLL_THREAD_DETACH cases, the runtime might 
be incrementing the refcount there.

Check this out:
http://wiki.dlang.org/Win32_DLLs_in_D



More information about the Digitalmars-d-learn mailing list