PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
AppDomain.CurrentDomain.UnhandledException in Smart Client
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
AppDomain.CurrentDomain.UnhandledException in Smart Client
![]() |
AppDomain.CurrentDomain.UnhandledException in Smart Client |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi,
AppDomain.CurrentDomain.UnhandledException doesnt seem to work in Smart Client application. Here is the code snippet. public static void Main() { AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(UnhandledExceptionHandler); Application.Run(new MainForm()); } static void UnhandledExceptionHandler(object sender, UnhandledExceptionEventArgs e) { Exception ex = (Exception)(e.ExceptionObject); MessageBox.Show(ex.ToString()); } tried declaring the UnhandledExceptionHandler proc to instance method but still no luck. Thanks for the help. Magesh |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

