[D-runtime] druntime fixes again break Windows DLL support

Rainer Schuetze r.sagitario at gmx.de
Fri Apr 22 09:48:23 PDT 2011


Rainer Schuetze wrote:
> 
> Recently, I also started creating threads in a DLL, and that revealed a 
> few inconsistencies between dll_helper.d and thread.d. The major problem 
> is that DLLMain is called before the thread is added to the list of 
> library created threads, causing initialization to be done twice.
> I have a patch for this, but I'm not yet on the latest git-version. I'll 
> try to update the bugzilla entry 
> http://d.puremagic.com/issues/show_bug.cgi?id=5582 with it and maybe 
> even create a pull request.

here's the commit with my patches to the runtime regarding DLL support 
for Windows Server 2003 and XP/64 and thread creation inside a DLL:

https://github.com/rainers/druntime/commit/864bb10cab2e0a3807df27962a73990b9e44c1e1


More information about the D-runtime mailing list