Dll crash in simplest case

frame frame86 at live.com
Mon Jan 25 10:26:20 UTC 2021


On Monday, 25 January 2021 at 07:58:01 UTC, Vitalii wrote:
> Hello everyone! I want to create shared library that buffer 
> some data and do some calculations, another program will use 
> it. I wonder how this simplest code lead to crash (freeze) of 
> dll:

Not tested your code but you have to use

import core.sys.windows.dll;
mixin SimpleDllMain;

Windows ist expecting a DllMain routine and runtime needs to 
attach the DLL thread.




More information about the Digitalmars-d-learn mailing list