DLL with D (FreeLibrary problem)
dragon-x at gmx.de
Fri Dec 30 03:26:43 PST 2011
I'm trying to write a DLL in D. Everything is actually working fine, until I reach FreeLibrary,
which terminates the test program (written in D) with code 0x1. DllMain is called correctly,
and seems to run through. But I never reach the lines after the FreeLib call.
When I write the same program in C++, to test the DLL, I have a similar problem,
although the program doesn't crash. Nothing is printed, after FreeLib, but it's still
waiting for the input at getch().
C++ Program: http://pastie.org/private/fehm1lgkxar87tantbgh0q
I'm still new to DLLs, or rather system programming in general,
and actually have near to no idea, what could be going wrong here.
More information about the Digitalmars-d-learn