I've also checked the event log but there is nothing there.
> Hi,
>
[quoted text clipped - 18 lines]
>
> Thanks!
The .NET Framework 2.0 don't handle the exception the same way as 1.1.
Basically the process is more likely to terminate after an exception than in
1.1.
All the quirk of exception handling is smoething somewhat obscure.
Exception event method don't always work as expected, if at all.
It's hard to find clear and complete documentation on the topic.
Anyway you could always try to register an event handler on
AppDomain.CurrentDomain.UnhandledException
I think it would be too late to save the application, but at least you
should get the information you need, I believe.
> Hi,
>
[quoted text clipped - 22 lines]
>
> Thanks!
barbutz - 09 Jan 2006 10:00 GMT
Thanks for the reply.
I will try the AppDomain.CurrentDomain.UnhandledException. But is it work
also for WindowsForms application? my application is console+windows Forms.
Also, can you please tell me if this is enough?
AppDomain.CurrentDomain.UnhandledException += new
UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
private static void CurrentDomain_UnhandledException(object sender,
UnhandledExceptionEventArgs e)
{
Exception ex = (Exception)e.ExceptionObject;
MessageBox.Show("Unhandled Exception");
MessageBox.Show(ex.GetType().ToString()+"\r\n"+ex.StackTrace);
}
Thanks
> The .NET Framework 2.0 don't handle the exception the same way as 1.1.
> Basically the process is more likely to terminate after an exception than in
[quoted text clipped - 36 lines]
> >
> > Thanks!
Lloyd Dupont - 09 Jan 2006 11:48 GMT
looks alright to me!
> Thanks for the reply.
> I will try the AppDomain.CurrentDomain.UnhandledException. But is it work
[quoted text clipped - 61 lines]
>> >
>> > Thanks!