I've recently upgraded my .NET 1.1 application to .NET 2.0 and,
especially under Windows Vista, my users are experiencing sudden
shutdowns. The application just quits or the standard .NET 2.0 error
message is shown (the one saying that the application has performed an
invalid operation and will be shut down).
My believe is that this may be due to background threads launching
exceptions.
In the Main() procedure I'm trapping both exceptions from the main
thread and all the other thread of the domain using:
Application.ThreadException +=new
System.Threading.ThreadExceptionEventHandler(Appli cation_ThreadException);
AppDomain.CurrentDomain.UnhandledException += new
UnhandledExceptionEventHandler(CurrentDomain_Unhan dledException);
Why isn't my crashreport (which I invoke when I detect an unhandled
exception) invoked on some situations and the application just quits?
Are there any reasons why this problem seems to happen more frequently
on Vista?
I also had some reports from a couple of users of immediate crashing
on Windows Vista x64.
Thanks.
Andrea