/[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 73 by william, Thu Jul 12 22:00:37 2012 UTC revision 94 by william, Sat Jul 14 02:52:23 2012 UTC
# Line 16  namespace AnywhereTS Line 16  namespace AnywhereTS
16          [STAThread]          [STAThread]
17          static void Main()          static void Main()
18          {          {
19              AppDomain currentDomain = AppDomain.CurrentDomain;              using (log4net.NDC.Push("Code executed from ATSAdmin.exe"))
20              currentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);              {
21              Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException, true);                  AppDomain currentDomain = AppDomain.CurrentDomain;
22              Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);                  currentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
23                    Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException, true);
24                    Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
25    
26              Application.EnableVisualStyles();                  Application.EnableVisualStyles();
27              Application.SetCompatibleTextRenderingDefault(false);                  Application.SetCompatibleTextRenderingDefault(false);
28              Application.Run(new frmAdmin());                  Application.Run(new frmAdmin());
29                }
30          }          }
31          static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)          static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
32          {          {

Legend:
Removed from v.73  
changed lines
  Added in v.94

  ViewVC Help
Powered by ViewVC 1.1.22