From d0826dae74cdc27d0c6a1d953d9236155ca44629 Mon Sep 17 00:00:00 2001 From: jx Date: Mon, 6 Feb 2017 17:16:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BA=86=E4=B8=80=E4=B8=AABU?= =?UTF-8?q?G=EF=BC=8C=E5=BD=93=E4=B8=8D=E7=99=BB=E5=BD=95=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E7=A6=BB=E5=BC=80=E6=97=B6=E5=AD=90=E7=BA=BF=E7=A8=8B?= =?UTF-8?q?=E4=BC=9Acrash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BaiduYunSync/frmMain.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BaiduYunSync/frmMain.cs b/BaiduYunSync/frmMain.cs index 0010972..eee1eac 100644 --- a/BaiduYunSync/frmMain.cs +++ b/BaiduYunSync/frmMain.cs @@ -34,7 +34,8 @@ namespace BaiduYunSync } else { - Application.Exit(); + //如果不是点击了确认,强行退出程序,使用Application.Exit()会导致子线程报错 + System.Environment.Exit(0); } } var items = LiteDbHelper.GetAllSyncItems();