public static void ReRegisterExceptionHandler()
 {
     u.c("Register Exception Handler,Agine");
     CrashMonitor.f = true;
     try
     {
         Application.RegisterLogCallback(new Application.LogCallback(CrashMonitor._OnLogCallbackHandler));
         CrashMonitor.InitWetestCrashMonitor();
     }
     catch (Exception)
     {
         Console.WriteLine("Register error");
         CrashMonitor.CLOSE_MONITOR = true;
     }
 }
 public static void RegisterExceptionHandler()
 {
     if (!CrashMonitor.f && !CrashMonitor.CLOSE_MONITOR)
     {
         u.c("Register Exception Handler");
         CrashMonitor.f = true;
         try
         {
             CrashMonitor.UncaughtExceptionReport       += new CrashMonitor.OnUncaughtExceptionReport(CrashMonitor.DefaultReportException);
             AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CrashMonitor.a);
             u.c("Current Domain is default domain?" + (AppDomain.CurrentDomain.IsDefaultAppDomain() ? "True" : "False"));
             u.c("Register jvm crash monitor");
             CrashMonitor.WetestAgent.CallStatic("initCrashReport", new object[0]);
             u.c("Register native crash monitor");
             CrashMonitor.InitWetestCrashMonitor();
         }
         catch (Exception ex)
         {
             Console.WriteLine("Register error\n" + ex.Message + "\n" + ex.StackTrace);
             CrashMonitor.CLOSE_MONITOR = true;
         }
     }
 }