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; } }
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; } }
private bool QuitClicked(GUIButton button, object obj) { game.Exit(); return(true); }