i am trying to integrate a static native c++ lib into a c# project. I use a c++/cli intermediate layer
which wraps the native classes and exposes them to the managed layer. That has worked fine so
far, i even managed to overcome the problem of using Boost library in the native classes.
I use VS 2005.
I now have a problem when i try to instantiate a singleton within the native code, which is implemented
according to the following principle
This singleton class is not wrapped in the c++/cli layer but it is constructed within an exposed native class.
The code compiles and links fine, but when i start the c#-exe i receive the error message:
ModuleLoadException: The C++ module failed to load during native initialization
ie the program doesn't even reach any executable sections.
Is that a known problem?
Can anybody point me towards a solution?
View Complete Post