停止对异常事件的捕获
This commit is contained in:
@@ -102,9 +102,12 @@ namespace HexcalMC.Hexcal
|
||||
try
|
||||
{
|
||||
WatchStatus = false;
|
||||
_mWatchSocket.Close();
|
||||
_mWatchSocket.Dispose();
|
||||
_mWatchSocket = null;
|
||||
if (_mWatchSocket != null)
|
||||
{
|
||||
_mWatchSocket.Close();
|
||||
_mWatchSocket.Dispose();
|
||||
_mWatchSocket = null;
|
||||
}
|
||||
|
||||
_dictThread.Clear();
|
||||
_dictSocket.Clear();
|
||||
|
||||
@@ -843,7 +843,7 @@ namespace HexcalMC
|
||||
|
||||
if (_mAcsConnected)
|
||||
{
|
||||
DisableFaultEvent(); //取消注册事件
|
||||
//DisableFaultEvent(); //取消注册事件
|
||||
_acs.CloseComm();
|
||||
|
||||
}
|
||||
@@ -1078,7 +1078,7 @@ namespace HexcalMC
|
||||
_mlblEnable[1] = lblEnable1;
|
||||
_mlblEnable[2] = lblEnable2;
|
||||
|
||||
EnableFaultEvent(); //订阅错误事件
|
||||
//EnableFaultEvent(); //订阅错误事件
|
||||
}
|
||||
|
||||
public static bool IsWithinLimit(Point3D point) //判断点是否在行程范围内
|
||||
|
||||
Reference in New Issue
Block a user