VS2005 - exceptions thrown whilst debugging



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 debugger:

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

.



Relevant Pages

  • RE: Strange LocalDataStoreSlot storage has been freed exception
    ... source code, it is not easy to find the root cause of the issue. ... Visual Studio to debug exception. ... In the Exceptions window, break when Common Language Runtime Exception ...
    (microsoft.public.dotnet.framework.clr)
  • Re: Debugging the UnHandledExceptionFilter Function in VS.Net
    ... If you can use cdb/ntsd/windbg as a debugger, you can set a breakpoint ... as first you have used the `gn` command to make the debugger fall through. ... a 0x80000003 exception is designed to stop execution in the ... > However i'm unable to debug this function in Visual Studio.Net 2003. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: win32 project error
    ... When you get an exception, you can go back to the code and look at the call ... stack window while you app is still running. ... Microsoft Visual C++ Debug Library ... (Press Retry to debug the application) ...
    (microsoft.public.vc.language)
  • Re: Program crashes before it starts!!!
    ... When calling the executable in either debug or release mode (starting ... step into it, or set a breakpoint and hit the breakpoint, the program ... exception when stepping in*/ ... Is it possibly related to the DLL functions we call from the program. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Program crashes before it starts!!!
    ... When calling the executable in either debug or release mode (starting ... step into it, or set a breakpoint and hit the breakpoint, the program ... exception when stepping in*/ ... Is it possibly related to the DLL functions we call from the program. ...
    (microsoft.public.win32.programmer.kernel)

Loading