Пример #1
0
 static void Application_UnhandledException1(object sender, Urho.UnhandledExceptionEventArgs e)
 {
     if (Debugger.IsAttached && !e.Exception.Message.Contains("BlueHighway.ttf"))
     {
         Debugger.Break();
     }
     e.Handled = true;
 }
Пример #2
0
        static void Application_UnhandledException(object sender, Urho.UnhandledExceptionEventArgs e)
        {
            var ex = e.Exception;
            var t  = ex.GetType();

            //if (Debugger.IsAttached)
            //    Debugger.Break();
            e.Handled = true;
        }
Пример #3
0
        static void ErrorRecovery(object s, Urho.UnhandledExceptionEventArgs e)
        {
            if (Debugger.IsAttached)
            {
                //Debugger.Break();
            }

            string message = $"Native exception occured: {e.Exception.Message}";

            Urho.IO.Log.Write(LogLevel.Error, message);
            //e.Handled = true;

            /*
             * LevelManager.CurrentLevel?.End();
             * Instance.MenuController.InitialSwitchToMainMenu("Game error", message);
             */
        }
Пример #4
0
 void OnUnhandledException(object sender, Urho.UnhandledExceptionEventArgs e)
 {
     e.Handled = true;
     System.Console.WriteLine(e);
 }
 private void Application_UnhandledException(object sender, Urho.UnhandledExceptionEventArgs e)
 {
     e.Handled = true;
 }
Пример #6
0
 static void Application_UnhandledException(object sender, Urho.UnhandledExceptionEventArgs e)
 {
     Shared.Log.Error(e.Exception, "Unhandled Urho exception");
     e.Handled = true;
 }
Пример #7
0
 void UrhoApp_UnhandledException(object sender, Urho.UnhandledExceptionEventArgs e)
 {
 }
Пример #8
0
 private void UrhoViewApp_UnhandledException(object sender, Urho.UnhandledExceptionEventArgs e)
 {
     e.Handled = true;
 }