What OS are you running on?
Your code works for me (XP SP3). Also Visual D works fine AFAICT (its a
plugin DLL to VS).
On 05.09.2011 19:17, Sönke Ludwig wrote:
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
[email protected]
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;
}
---
_______________________________________________
dmd-beta mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-beta
_______________________________________________
dmd-beta mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-beta