Debugging Managed vs Unmanaged code, please help!!!

From: Alex Hazanov (alex_at_meidan.co.il)
Date: 11/25/04


Date: 25 Nov 2004 13:34:51 -0800

Here is the situation:
I'm trying to debug an AutoCAD ObjectARX application written in C++
with VS.NET 2002
Everything worked fine untill i have used an embedded WebBrowser
control in one of my dialogs (Actually the control is contained in
another ActiveX control, so i can call "setExternal" on the
WebBrowser)

The thing is that now when i debug the debugger loads symbols for my
application files (which are C++ unmanaged DLLs), and ALSO it loads
symbols for msvcr71.dll which is a part of the .NET framework.

Now what happens is that when the appliction reaches the point where i
have set a break point and it should break into debugger both the
application (AutoCAD) and the .NET IDE freezes. My guess is that the
reason is that managed and native debugging have mixed somehow,
although the debug mode is set to "Native only". Now the most
interesting part is that if at this freezing point i kill the AutoCAD
process via task manager the App breaks into the debugger! I'm even
able to walk the call stack, view variable values etc, but this doesnt
help much since when i step into the next statement the app closes
(well i killed it's process, din't i) , so i'm unable to step through
the code...

Does anyone have any ideas how to prevent this behaviour ???
Any tips, pointer and help would be appreciated...



Relevant Pages

  • Re: Debugging Interrupt Vector Tables (IVTs)
    ... A more useful question would be centred on why you want to "debug IVT". ... able to debug using the debugger without loosing any control if i debug ... within the bootloader /application. ...
    (comp.os.linux.embedded)
  • Re: Debugging Interrupt Vector Tables (IVTs)
    ... able to debug using the debugger without loosing any control if i debug ... within the bootloader /application. ...
    (comp.os.linux.embedded)
  • Re: Refer to control in procedure
    ... ActiveControl, PreviousControl, or ActiveForm don't do will in debug. ... UNIQUE control is assigned to a _Click procedure... ... the Screen Active control is modified live by activation of the debugger ...
    (microsoft.public.access.forms)
  • Re: How to connect to children process
    ... Main problem is amount of manual operations required per debug cycle. ... connection to DLL with debugger takes sensible amount of time and manual ... Is the main problem that the debugger keeps symbols file loaded ... AFAIK that's how VS2003 debugger works, but WinDbg should usually ...
    (microsoft.public.vsnet.debugging)
  • Re: Need Help Debugging
    ... you should use straight and plain ADPlus.VBS from the debugger package. ... debug info loaded, etc... ... does that avoid using the stack ?!? ... which is our custom CRITICAL_SECTION class. ...
    (microsoft.public.win32.programmer.kernel)