NewsBot
1
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
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