예제 #1
0
        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
        }
예제 #2
0
        protected override void OnFormClosed(FormClosedEventArgs e)
        {
            base.OnFormClosed(e);

            formClosing = true;
            if (handler != null)
            {
                handler.End();
            }
        }
예제 #3
0
        protected override void OnFormClosed(FormClosedEventArgs e)
        {
            base.OnFormClosed(e);

            formClosing = true;
            //if (handler.FakeFocus != null)
            //{
            //    handler.FakeFocus.Abort();
            //}
            if (handler != null)
            {
                handler.End();
            }
        }
예제 #4
0
        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();
            }
        }