예제 #1
0
 public void UnhandledErrorHandler(Exception ex)
 {
     try
     {
         Bitmap          screenShot = CaptureScreenshot();
         ExceptionDialog dialog     = new ExceptionDialog(ex, screenShot);
         dialog.ShowDialog();
         dialog.Dispose();
         screenShot.Dispose();
     }
     catch
     {
         _guiController.ShowMessage("An unexpected error occurred. Please post the following information on the AGS Technical Forum." + Environment.NewLine + Environment.NewLine + ex.ToString(), MessageBoxIcon.Stop);
     }
     _guiController.ShowMessage("A serious error occurred and the AGS Editor may now be in an unstable state. You are STRONGLY ADVISED to shut down the editor and restart it. Before saving your work, make a backup copy of your game folder in case any data has been corrupted.", MessageBoxIcon.Error);
 }
예제 #2
0
 public void UnhandledErrorHandler(Exception ex)
 {
     try
     {
         Bitmap screenShot = CaptureScreenshot();
         ExceptionDialog dialog = new ExceptionDialog(ex, screenShot);
         dialog.ShowDialog();
         dialog.Dispose();
         screenShot.Dispose();
     }
     catch
     {
         _guiController.ShowMessage("An unexpected error occurred. Please post the following information on the AGS Technical Forum." + Environment.NewLine + Environment.NewLine + ex.ToString(), MessageBoxIcon.Stop);
     }
     _guiController.ShowMessage("A serious error occurred and the AGS Editor may now be in an unstable state. You are STRONGLY ADVISED to shut down the editor and restart it. Before saving your work, make a backup copy of your game folder in case any data has been corrupted.", MessageBoxIcon.Error);
 }
예제 #3
0
 public void UnhandledErrorHandler(Exception ex)
 {
     try
     {
         Bitmap screenShot = CaptureScreenshot();
         ExceptionDialog dialog = new ExceptionDialog(ex, screenShot);
         dialog.ShowDialog();
         dialog.Dispose();
         screenShot.Dispose();
     }
     catch
     {
         _guiController.ShowMessage("Une erreur imprévue est survenue. Veuillez transmettre les informations suivantes sur le Forum Technique d'AGS." + Environment.NewLine + Environment.NewLine + ex.ToString(), MessageBoxIcon.Stop);
     }
     _guiController.ShowMessage("Une erreur sérieuse est survenue et l'Éditeur AGS se trouve peut-être désormais dans un état instable. Vous êtes FORTEMENT INVITÉ à fermer l'éditeur et à le relancer. Avant de sauver votre travail, faites une copie du dossier de votre jeu au cas où des données auraient été corrompues."
          + Environment.NewLine + Environment.NewLine + "Erreur : " + ex.ToString(), MessageBoxIcon.Error);
 }