www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16524] New: Use Shared C Runtime on Windows

https://issues.dlang.org/show_bug.cgi?id=16524

          Issue ID: 16524
           Summary: Use Shared C Runtime on Windows
           Product: D
           Version: D2
          Hardware: All
               URL: http://dlang.org/
                OS: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: gyroheli gmail.com

Currently DMD is hard coded to use the static runtime for windows, this means
that shared libraries are going to be using multiple different "malloc()" so it
isn't safe to pass around between DLLs if they are going to be loaded and
unloaded. Switching to use the dynamic runtime instead should fix this. 

https://github.com/dlang/dmd/blob/v2.071.2/src/glue.c#L929

--
Sep 21 2016