Re: Runtime error when accessing static data in a DLL

2009-12-30 Thread Don
Phil Deets wrote: On Thu, 24 Dec 2009 13:10:14 -0500, Phil Deets wrote: On Thu, 24 Dec 2009 12:49:42 -0500, Richard Webb wrote: Sounds like you might be running into this: http://d.puremagic.com/issues/show_bug.cgi?id=3342 Thanks for the link. That is probably my problem since I'm runnin

Re: Runtime error when accessing static data in a DLL

2009-12-24 Thread Phil Deets
On Thu, 24 Dec 2009 13:10:14 -0500, Phil Deets wrote: On Thu, 24 Dec 2009 12:49:42 -0500, Richard Webb wrote: Sounds like you might be running into this: http://d.puremagic.com/issues/show_bug.cgi?id=3342 Thanks for the link. That is probably my problem since I'm running Windows XP.

Re: Runtime error when accessing static data in a DLL

2009-12-24 Thread Phil Deets
On Thu, 24 Dec 2009 10:49:01 -0500, Phil Deets wrote: I'll work on reproducing it in a smaller scale Reduced test case: test.c (compiled with Visual C++ 2008 Express Edition) // Adapted from sample code at http://msdn.microsoft.com/en-us/library/ms680582(VS.85).aspx #include #include

Re: Runtime error when accessing static data in a DLL

2009-12-24 Thread Phil Deets
On Thu, 24 Dec 2009 12:49:42 -0500, Richard Webb wrote: Sounds like you might be running into this: http://d.puremagic.com/issues/show_bug.cgi?id=3342 Thanks for the link. That is probably my problem since I'm running Windows XP. Phil

Re: Runtime error when accessing static data in a DLL

2009-12-24 Thread Richard Webb
Sounds like you might be running into this: http://d.puremagic.com/issues/show_bug.cgi?id=3342

Runtime error when accessing static data in a DLL

2009-12-24 Thread Phil Deets
I'm writing a DLL in D which will be loaded (not automatically, but by LoadLibrary) by a C application (the Lua interpreter). I'm having problems with globals and static data. Everything is fine if I only access stuff on the stack, but as soon as I access a global or a static class variable,