Debugging a Mixed Mode dll

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello, I have a mixed mode DLL that I am trying to debug that's acting really
weird, Basiclly I expose a bunch of functions through virtual functions and
other code loads it that way.

What's really weird is in my CPP file I have breakpoints set where it jumps
into one or two functions perfectly just like you would expect it to. But
then I have other functions in the exact same cpp file that when it gets to
that breakpoint I end up in the wscoworks.dll with assembly only. I can move
back the call stack and see my code/assembly but I need to be able to look at
varibles and such.

Is there anything I can do to make this work? I really need to be able to
get into that fuction, It's really weird that it works fine with some
functions in the same cpp file but not others. I tired to see if I was doing
something differntly between the functions that work and the functions that
don't but I don't see one.

Any suggestions would be super helpful.
 
Are you mixing managed and unmanaged code in the same file (#pragma
managed/unmanaged)?
Make sure you are using both debuggers (Debugger Type=mixed, do not use
Auto)!

Regards,
Ståle
 
Back
Top