Groups | Blog | Home
all groups > visual studio .net debugging > april 2006 >

visual studio .net debugging : Debugging and executiong doesnt fit


eduwushu
4/11/2006 4:59:01 AM
Hi there i have a problem with visual studio 2005:

I have a program which is bringing me some problems.Its a windows form
application with use of threading.
The point is that when i run the debugger it doesnt show me any error
message or exception and everything goes right, i can move the forms and
everything.
But when i select start without debugging when i start moving one of the
forms of my application a windows error message appears.When i get to te
report details it sais that the error code is 0xc0000005 ( i think it is
memory corruption)
I have also activated all the debugger mda's and when i run the debugger
everything goes fine but in execution the error message always appear when i
try to move a form, it's frustating !! and i dont know the way to detect with
the debugger what is happening.
Some ideas please???
Oleg Starodumov
4/12/2006 2:32:14 PM

[quoted text, click to view]

Here are some possible approaches:

- Try to launch the application without debugger, then attach the debugger to it

- Register VS as the just-in-time debugger (Tools | Options | Debugging |
Just-in-time - check "Managed" and "Native". The next time when the exception
is raised, the debugger will be started and attached to the process, and
you should be able to debug the problem. (When you see the just-in-time debugger
dialog, check "Manually choose the debugging engines" and select both
native and managed engines in the subsequent dialog).

- If none of the above helps, you can use tracing to debug this problem

Also, the problem looks like a race condition, so pay attention to proper
synchronization in your code.

Regards,
Oleg
[VC++ MVP http://www.debuginfo.com/]


AddThis Social Bookmark Button