VS2005 - exceptions thrown whilst debugging

VS2005 - exceptions thrown whilst debugging

Post by akas » Thu, 22 Mar 2007 00:07:03


I have a windows forms app that I can compile (debug version) and run
from the command line. However, when I try to debug it I get a variety
of exceptions thrown by the de *** :

1) If I don't have any breakpoints, I get either "An unhandled
exception of type 'System.StackOverflowException' occurred in
mscorlib.dll" or "Ignoring managed exception from unknown thread.The
program '[8328] UI.vshost.exe: Managed' has exited with code
-2147023895 (0x800703e9)."

2) If I place a breakpoint in the code, I get either "A first chance
exception of type 'System.Runtime.InteropServices.SEHException'
occurred in UI.exe" or sometimes "Object reference not set to an
instance of an object.", depending on where I set the breakpoint.

I have seen other thread talking about recursive properties in the
watch window, but I am not displaying anything in the watch window.

Any suggestions?
Thanks
Akash
 
 
 

VS2005 - exceptions thrown whilst debugging

Post by akas » Thu, 22 Mar 2007 17:55:50

I forgot to add that when I set a breakpoint, VS2005 doesn't actually
break at the breakpoint - it just raises an exception.