www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Problems when trying to write a Dll/COM object in D2


Whlie trying to write a COM object using D2 and the Juno library, i ran into
the problem mentioned  

Basically, if i build the dll example shown  
http://www.digitalmars.com/d/2.0/dll.html with DMD 2.032 and try to LoadLibrary
it on WindowsXP, then i get a couple of access violations (one from inside the
Runtime.initialize() call and one from the g_hInst=hInstance line).
If i try to load the same dll on Windows 2008 then all appears ok.

Is this a known issue with D2?

Richard Webb
Sep 21 2009