Jump to content

Recommended Posts

Posted

I wanted a more user friendly experience when this C# app crashes. So I wrapped all the code in Main() in a try catch to handle any unhandled exceptions. Inside the catch I show an error reporting dialog where the user has the option to report the error.

 

So I assumed that all unhandled exceptions would end up in this catch block, but it doesn't seem to be the case. On some machines the catch block doesn't catch the exception and the standard .NET exception dialog pops up.

 

So is there any instance where a try catch wouldn't catch an exception?

 

Just a side note: All machines that this is tested on have .NET 2.0 SP1. The two machines that do not catch the exception have server 2003 installed.

 

 

More...

 

View All Our Microsoft Related Feeds

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...