/[AnywhereTS-MSSQL]/trunk/TSAdminTool/Program.cs
ViewVC logotype

Diff of /trunk/TSAdminTool/Program.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 61 by william, Thu Jul 12 17:34:46 2012 UTC revision 65 by william, Thu Jul 12 19:07:58 2012 UTC
# Line 17  namespace AnywhereTS Line 17  namespace AnywhereTS
17              AppDomain currentDomain = AppDomain.CurrentDomain;              AppDomain currentDomain = AppDomain.CurrentDomain;
18              currentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);              currentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
19              Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException, true);              Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException, true);
20                Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
21    
22              Application.EnableVisualStyles();              Application.EnableVisualStyles();
23              Application.SetCompatibleTextRenderingDefault(false);              Application.SetCompatibleTextRenderingDefault(false);
24              Application.Run(new frmAdmin());              Application.Run(new frmAdmin());
25          }          }
26            static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
27            {
28                CurrentDomain_UnhandledException(sender, new UnhandledExceptionEventArgs(e.Exception, false));
29            }
30          static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs args)          static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs args)
31          {          {
32              Exception e = (Exception)args.ExceptionObject;              Exception e = (Exception)args.ExceptionObject;

Legend:
Removed from v.61  
changed lines
  Added in v.65

  ViewVC Help
Powered by ViewVC 1.1.22