|
@@ -150,9 +150,9 @@ namespace CCDCount.DLL
|
|
|
}
|
|
}
|
|
|
CameraConfigIsChange = false;
|
|
CameraConfigIsChange = false;
|
|
|
}
|
|
}
|
|
|
- catch
|
|
|
|
|
|
|
+ catch(Exception ex)
|
|
|
{
|
|
{
|
|
|
-
|
|
|
|
|
|
|
+ Console.WriteLine($"MainThreadClass-LoadCamera:加载相机失败: {ex.Message}");
|
|
|
}
|
|
}
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
@@ -199,9 +199,9 @@ namespace CCDCount.DLL
|
|
|
shuLiClass.StartIdentifyFuntion(cameraClass.GetCamereImageSize().Width);
|
|
shuLiClass.StartIdentifyFuntion(cameraClass.GetCamereImageSize().Width);
|
|
|
result = true;
|
|
result = true;
|
|
|
}
|
|
}
|
|
|
- catch
|
|
|
|
|
|
|
+ catch(Exception ex)
|
|
|
{
|
|
{
|
|
|
-
|
|
|
|
|
|
|
+ Console.WriteLine($"MainThreadClass-StartMianThread:启动失败: {ex.Message}");
|
|
|
}
|
|
}
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
@@ -225,8 +225,9 @@ namespace CCDCount.DLL
|
|
|
StopSendBottLogicMessageThread();
|
|
StopSendBottLogicMessageThread();
|
|
|
result = true;
|
|
result = true;
|
|
|
}
|
|
}
|
|
|
- catch
|
|
|
|
|
|
|
+ catch(Exception ex)
|
|
|
{
|
|
{
|
|
|
|
|
+ Console.WriteLine($"MainThreadClass-StopMianThread:停止失败: {ex.Message}");
|
|
|
}
|
|
}
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
@@ -635,7 +636,8 @@ namespace CCDCount.DLL
|
|
|
}
|
|
}
|
|
|
catch (Exception ex)
|
|
catch (Exception ex)
|
|
|
{
|
|
{
|
|
|
- FaultLog.RecordErrorMessage("Start thread failed!, " + ex.Message);
|
|
|
|
|
|
|
+ FaultLog.RecordErrorMessage("MainThreadClass-StopSwitchThread:Stop thread failed!, " + ex.Message);
|
|
|
|
|
+ Console.WriteLine("MainThreadClass-StopSwitchThread:Stop thread failed!, " + ex.Message);
|
|
|
throw;
|
|
throw;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -698,7 +700,8 @@ namespace CCDCount.DLL
|
|
|
}
|
|
}
|
|
|
catch (Exception ex)
|
|
catch (Exception ex)
|
|
|
{
|
|
{
|
|
|
- FaultLog.RecordErrorMessage("Start thread failed!, " + ex.Message);
|
|
|
|
|
|
|
+ FaultLog.RecordErrorMessage("MianThread-StartSendBottLogicMessageThread:Start thread failed!, " + ex.Message);
|
|
|
|
|
+ Console.WriteLine("MianThread-StartSendBottLogicMessageThread:Start thread failed!, " + ex.Message);
|
|
|
throw;
|
|
throw;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|