Ejemplo n.º 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
        }
Ejemplo n.º 2
0
        protected override void OnFormClosed(FormClosedEventArgs e)
        {
            base.OnFormClosed(e);

            formClosing = true;
            if (handler != null)
            {
                handler.End();
            }
        }
Ejemplo n.º 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();
            }
        }
Ejemplo n.º 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();
            }
        }