Exemplo n.º 1
0
        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 { }
        }
Exemplo n.º 2
0
 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 { }
 }