I'm loading in C# a C++/CLI wrapper dll (to a native C++ dll) and if I compile my tool in release mode I'm getting R6034 runtime error and
A dynamic link library (DLL) initialization failed. (Exception from HRESULT: 0x8007045A).
Scheme:
C# tool ---> reference to C++/CLI wrapper ---> static load (implicit) native C++ dll (Additional Dependencies -> lib file)
It seems that something is wrong with the loading process of the C++ library (but I don't have problems in Debug Mode)!
Any hints or ideas!?
Thx
Do you have a release build of the .lib file when running the release build of your app? If not then your release build will not be loading the debug versions of dlls to satisfy the .lib hence the application will not run.
Build the release build with symbols, then debug it in the C++ debugger.
User contributions licensed under CC BY-SA 3.0