I'm having some problems with a DLL file I've created in C++. Basically within the DLL file are several classes, some of which have a static instance declared. The DLL file compiles perfectly fine and everything, however when I try to use it in a test program, if I include any of the header files which have a static instance of a class I get the following run-time error:
The application failed ot initialize properly (0xc0000005)
The thing is, it's only classes that have a constructor specified that are causing this error - if there is no constructor specified for that class and a static instance is declared, then the error does not occur. Does anyone have any insight as to what may be causing this? I apologise if I haven't explained this very well.
Comments
[link=http://www.microsoft.com/whdc/driver/kernel/DLL_bestprac.mspx]http://www.microsoft.com/whdc/driver/kernel/DLL_bestprac.mspx[/link]
[/color]