tags:

views:

199

answers:

1

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.

A: 

The project, which called the native class was linked statically to my exe and this did not worked. I changed it to a DLL and now it seems to work.

I'll investigate a little more.

Simon
Converting the project to a DLL fixed the issue, however I'm not quite sure what the reason is.
Simon