v3.8.6.0 1、修改代码,将软件.net框架版本由4.5降低到4.0,可在WinXP系统运行,WinXP系统最高支持.net 4.0。

This commit is contained in:
wisdomwei201804 2018-07-18 16:48:25 +08:00
parent 4249a23f72
commit 78a5a33797

View File

@ -210,13 +210,12 @@ namespace net.nutcore.aliddns
try try
{ {
Task task = Task.Factory.StartNew(() => new Thread(() =>
{ {
var proc = Process.Start(exec); var proc = Process.Start(exec);
proc.WaitForExit(); proc.WaitForExit();
proc.Dispose(); proc.Dispose();
}); }).Start();
task.Start();
} }
catch (Exception ex) catch (Exception ex)
{ {
@ -228,7 +227,7 @@ namespace net.nutcore.aliddns
{ {
try try
{ {
Task task = Task.Factory.StartNew(() => new Thread(() =>
{ {
Process[] pList = Process.GetProcessesByName("Ngrok"); Process[] pList = Process.GetProcessesByName("Ngrok");
foreach (Process p in pList) foreach (Process p in pList)
@ -238,8 +237,7 @@ namespace net.nutcore.aliddns
p.WaitForExit(); p.WaitForExit();
p.Dispose(); p.Dispose();
} }
}); }).Start();
task.Start();
} }
catch (Exception ex) catch (Exception ex)
{ {