\r
using System;\r
using System.Windows.Forms;\r
+using KancolleSniffer.Util;\r
\r
namespace KancolleSniffer\r
{\r
return;\r
Application.EnableVisualStyles();\r
Application.SetCompatibleTextRenderingDefault(false);\r
- Application.Run(new MainForm());\r
+ try\r
+ {\r
+ Application.Run(new MainForm());\r
+ }\r
+ catch (Exception ex)\r
+ {\r
+ var inner = ex.InnerException;\r
+ MessageBox.Show(ex.Message +\r
+ (inner == null\r
+ ? ""\r
+ : "\r\n" + inner.Message +\r
+ (inner.InnerException == null\r
+ ? ""\r
+ : "\r\n" + inner.InnerException.Message)),\r
+ "エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);\r
+ }\r
}\r
}\r
}
\ No newline at end of file