Debugging C# assembly called from C++

L

listerofsmeg

Hi,

I have a C# assembly that is being called from VC6 via COM.

I open the C# project in .Net, set a breakpoint, set debug type to
"program", and specify my C++ app.

F5 runs the C++ app, but my breakpoint never fires?!

The C# dll is not in the GAC, and the build path is different to the
actual path of the dll used by the C++ app. Could this be anything to
do with it? (I cannot change the build path for some reason - it is
greyed out).

Also tried enabling "debug unmanaged code" but this makes no
difference.

Any ideas?

Thanks
 
G

Guest

and the build path is different to the
actual path of the dll used by the C++ app. Could this be anything to
do with it?

Er.. yes. (Probably.) This is the first thing I'd try. It should register it
on building it, which should set the path that the C++ program uses.


(I cannot change the build path for some reason - it is
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top