void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) { MessageBox.Show(e.ExceptionObject.ToString()); try { gameManager.End(); if (handler != null) { handler.End(); } } catch { } #if DEBUG try { if (e.ExceptionObject is Exception) { SaveException((Exception)e.ExceptionObject); } } catch { } #endif }
protected override void OnFormClosed(FormClosedEventArgs e) { base.OnFormClosed(e); formClosing = true; if (handler != null) { handler.End(); } }
protected override void OnFormClosed(FormClosedEventArgs e) { base.OnFormClosed(e); formClosing = true; //if (handler.FakeFocus != null) //{ // handler.FakeFocus.Abort(); //} if (handler != null) { handler.End(); } }
protected override void OnFormClosed(FormClosedEventArgs e) { base.OnFormClosed(e); formClosing = true; //if (handler.FakeFocus != null) //{ // handler.FakeFocus.Abort(); //} if (handler != null) { Log("OnFormClosed method calling Handler End function"); handler.End(); } }