static void Main(String[] args) { MyGlobals.args = args; // dimon Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); ASP app = null; try { Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException); AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException); app = new ASP(); Application.Run(app); } catch (Exception ex) { report(ex, true); } try { app.Stop(); } catch { } }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); ASP app = null; try { Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException); AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException); app = new ASP(); Application.Run(app); } catch (Exception ex) { report(ex,true); } try { app.Stop(); } catch { } }