Debugging C# assembly called from C++

  • Thread starter Thread starter listerofsmeg
  • Start date Start date
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
 
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
 
Back
Top