[dmd-beta] dmd 1.070 and 2.055 beta

Sönke Ludwig ludwig at informatik.uni-luebeck.de
Mon Sep 5 10:17:52 PDT 2011


Am 04.09.2011 06:48, schrieb Walter Bright:
> http://ftp.digitalmars.com/dmd1beta.zip
> http://ftp.digitalmars.com/dmd2beta.zip
> _______________________________________________
> dmd-beta mailing list
> dmd-beta at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-beta
Has anything changed with regard to TLS?

I'm getting OutOfMemoryErrors when accessing TLS arrays from within a 
DLL. Maybe the dll_fixTLS function in core.sys.windows.dll needs to be 
adjusted?

---
import std.c.windows.windows;
import core.sys.windows.dll;

int[] s_arr;

extern (Windows) 
BOOL DllMain(HINSTANCE hInstance, ULONG ulReason, LPVOID pvReserved)  {
switch (ulReason) {
default: return false;
case DLL_PROCESS_ATTACH:
             if( !dll_process_attach( hInstance, true ) ) return false;
             s_arr ~= 0; // -> OutOfMemoryError
break;
     }
return true;
}
---
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/dmd-beta/attachments/20110905/8982f99a/attachment.html>


More information about the dmd-beta mailing list