using System; using System.Collections.Generic; using System.Windows.Forms; using System.Diagnostics; namespace SSTFEditor { static class Program { [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault( false ); try { Application.Run( new メインフォーム() ); } #if !DEBUG // デバッグ時はキャッチしない方が解析に便利。 catch( Exception e ) { // 異常終了。キャッチされなかった例外をログに出力。 MessageBox.Show( string.Format( "未処理の例外が発生しました。\n終了します。\n\n{0}", e.ToString() ), "エラー", MessageBoxButtons.OK, MessageBoxIcon.Error ); //FDK.C共通.t例外の詳細をログに出力する( e ); Trace.WriteLine( "" ); Trace.WriteLine( "エラーだゴメン!(涙" ); } #endif finally { } } } }