C++ app fails to initialize (0xc0000005), when using C# dll
- by Simon
Hi,
I have a C# DLL, which I call from a native C++ programm.
As I use Qt and /clr compiler option did not work I followed this tutorial for a bridge.
So I have a VS2008 project (compiled with /clr), which links to the C# DLL and contains the bridge class and the native class, which exposes interfaces to my C++ programm. Another VS2008 project (no .net stuff) calls the native class (statically linked).
I had some issues, but now the programm at least compiles.
However, if I try to run this programm, I get a (0xc0000005) error on initialization, when I try to use the native class.
As this happens on initialization, I don't even see, which DLLs fail to initialize. All DLLs should be in the right place.
Any hints?
Thank you.