v3.8.6.0 1、修改代码,将软件.net框架版本由4.5降低到4.0,可在WinXP系统运行,WinXP系统最高支持.net 4.0。
This commit is contained in:
parent
4249a23f72
commit
78a5a33797
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user