Summary: No multithread support for Windows DLL
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime

--- Comment #0 from Rainer Schuetze <> 2010-03-06 08:16:32 
PST ---
Created an attachment (id=583)
dll test project

There is currently no support for multithreading when creating DLLs. Here's a
small test project that creates a DLL and builds three programs:

test.exe: links against the import library of the DLL
testdyn.exe: loads the DLL via LoadLibrary
teststat.exe: links evreything without using DLLs (just for comparison).

The test program creates 10 threads (in the case of testdyn.exe 5 before
loading the library), and then calls a few functions mainly testing TLS access
and memory corruption.

This is for both D1 and D2, see the top of build.bat for DMD path and switching

Both test.exe and testdyn.exe produce access violations.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to