Beispiel #1
0
 private static void CrashHandler(object sender, UnhandledExceptionEventArgs args)
 {
     try
     {
         Game?.Exit();
         CrashDump("servercrashreport.log", (Exception)args.ExceptionObject);
         GameMain.Server?.NotifyCrash();
     }
     catch
     {
         //exception handler is broken, we have a serious problem here!!
         return;
     }
 }
Beispiel #2
0
 private static void CrashHandler(object sender, UnhandledExceptionEventArgs args)
 {
     try
     {
         Game?.Exit();
         CrashDump(Game, "crashreport.log", (Exception)args.ExceptionObject);
         Game?.Dispose();
     }
     catch (Exception e)
     {
         Debug.WriteLine(e.Message);
         //exception handler is broken, we have a serious problem here!!
         return;
     }
 }
Beispiel #3
0
 private bool QuitClicked(GUIButton button, object obj)
 {
     game.Exit();
     return(true);
 }