From 594cf28244b9420e5a8543883f3df183368dfbdd Mon Sep 17 00:00:00 2001
From: mrDarker <mr.darker@163.com>
Date: 星期二, 13 五月 2025 15:06:12 +0800
Subject: [PATCH] 1. 修复AlarmList.csv文件异常时导致闪退的问题 2. 修复Master.dat异常时进程无法退出的问题
---
SourceCode/Bond/Servo/Servo.cpp | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/SourceCode/Bond/Servo/Servo.cpp b/SourceCode/Bond/Servo/Servo.cpp
index 1f0b95e..5866c64 100644
--- a/SourceCode/Bond/Servo/Servo.cpp
+++ b/SourceCode/Bond/Servo/Servo.cpp
@@ -145,18 +145,18 @@
// 初始化SECS运行设置管理库
- try {
- if (!SECSRuntimeManager::getInstance().initRuntimeSetting()) {
- AfxMessageBox("初始化SECS运行设置失败!");
- return FALSE;
- }
- }
- catch (const std::exception& ex) {
- CString errorMsg;
- errorMsg.Format(_T("初始化SECS运行设置失败:%s"), CString(ex.what()));
- AfxMessageBox(errorMsg, MB_ICONERROR);
- return FALSE;
- }
+ //try {
+ // if (!SECSRuntimeManager::getInstance().initRuntimeSetting()) {
+ // AfxMessageBox("初始化SECS运行设置失败!");
+ // return FALSE;
+ // }
+ //}
+ //catch (const std::exception& ex) {
+ // CString errorMsg;
+ // errorMsg.Format(_T("初始化SECS运行设置失败:%s"), CString(ex.what()));
+ // AfxMessageBox(errorMsg, MB_ICONERROR);
+ // return FALSE;
+ //}
CServoDlg dlg;
--
Gitblit v1.9.3