Hi
I have a weird issue. Say you have the following:
Application.ThreadException += something;
try
{
Application.Run(new Form1());
}
catch (Exception ex)
{
}
Now given an exception happens somewhere in the app, Vista raises the ThreadException
event, but XP just jumps straight to the catch block.
How do I get the handling to behave the same? In something
I need to handle some cleanup, but it never goes there with XP. Consequently, the FormClosing
event never fires from the catch block as all forms are disposed at that stage.
Notes:
- Both systems run .NET 3.5 SP1, same version
- Only difference is the OS
Thanks