Runtime.unloadLibrary does not return
Colden Cullen
ColdenCullen at gmail.com
Fri Jan 3 11:37:03 PST 2014
On Saturday, 3 November 2012 at 19:36:14 UTC, cal wrote:
> Following the D win32 dll example (http://dlang.org/dll.html),
> I created a d dll with a simple exported function, which i then
> dynamically load and call (just like the example). This works
> fine, however Runtime.unloadLibrary does not return. I do
> however get the "DLL_PROCESS_DETACH" message, so it gets at
> least that far.
>
> In fact, if I have code after the Runtime.unloadLibrary call,
> the program crashes (without code following the call, it just
> hangs).
>
> Has anyone else seen this problem? I get this with both dmd
> 2.060 and 2.061.
I'm using 2.064.2, and I'm having a very similar issue. For me,
the program doesn't crash until after my main has finished
executing. Does anyone have any idea what might be going on?
More information about the Digitalmars-d-learn
mailing list