CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2009
    Posts
    9

    Exception Reporting

    I am running my .Net application with 3.5 sp1,with IDE Visual C# Express 2008

    If I run the program using Start Debugging (F5) and run into an exception my program quits back into the IDE but doesn't show me what exception I ran into or any error messages, it just simply closes out back to the IDE.

    If I run my program from my Debug folder and run the same scenario as above, I do get my exception and can appropriately debug and catch.

    Is this normal behavior or have I disabled something?

  2. #2
    Join Date
    Jun 2008
    Posts
    2,477

    Re: Exception Reporting

    If you run a Debug build under the debugger and your program crashes it should highlight the line which was being executed when the crash occurred.

  3. #3
    Join Date
    Mar 2004
    Location
    Prague, Czech Republic, EU
    Posts
    1,701

    Re: Exception Reporting

    In VS's menu Tools/Options/Debugging, you can enable/disable Exception Assistant.
    In VS's menu Debug/Exceptions, you can set if the exception raised should be reported on throw, or if is is unhandled. Try set on throw, because poorly used try-catch can swallow the exception.
    • Make it run.
    • Make it right.
    • Make it fast.

    Don't hesitate to rate my post.

  4. #4
    Join Date
    Dec 2009
    Posts
    9

    Re: Exception Reporting

    Thanks guys, I'll take a look into the debug exceptions menu.

    As for the unknown exception. I think I have isolated it to being a call I make to a server and in the case the server never responds it hangs until timeout, if I throw another call it should queue it but in some cases its bringing my application down.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured