From d256f84735b75529a640ca61384c3c55b557fce9 Mon Sep 17 00:00:00 2001
From: mrDarker <mr.darker@163.com>
Date: 星期一, 12 五月 2025 16:22:57 +0800
Subject: [PATCH] 1. 修复日志时顺问题 2. 解决远程路径不存在编译报错的问题
---
SourceCode/Bond/Servo/Servo.cpp | 51 +++++++++++++++++++++++++++------------------------
1 files changed, 27 insertions(+), 24 deletions(-)
diff --git a/SourceCode/Bond/Servo/Servo.cpp b/SourceCode/Bond/Servo/Servo.cpp
index 22a08a3..c3d5bce 100644
--- a/SourceCode/Bond/Servo/Servo.cpp
+++ b/SourceCode/Bond/Servo/Servo.cpp
@@ -130,33 +130,33 @@
// 初始化生产履历管理器
- try {
- if (!ProductionLogManager::getInstance().initProductionTable()) {
- AfxMessageBox("初始化生产履历管理器失败!");
- return FALSE;
- }
- }
- catch (const std::exception& ex) {
- CString errorMsg;
- errorMsg.Format(_T("初始化生产履历管理器失败:%s"), CString(ex.what()));
- AfxMessageBox(errorMsg, MB_ICONERROR);
- return FALSE;
- }
+ //try {
+ // if (!ProductionLogManager::getInstance().initProductionTable()) {
+ // AfxMessageBox("初始化生产履历管理器失败!");
+ // return FALSE;
+ // }
+ //}
+ //catch (const std::exception& ex) {
+ // CString errorMsg;
+ // errorMsg.Format(_T("初始化生产履历管理器失败:%s"), CString(ex.what()));
+ // AfxMessageBox(errorMsg, MB_ICONERROR);
+ // return FALSE;
+ //}
// 初始化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;
@@ -201,6 +201,9 @@
// 销毁报警表
AlarmManager::getInstance().termAlarmTable();
+ // 销毁生产表
+ ProductionLogManager::getInstance().termProductionTable();
+
// 销毁SECS运行设置管理库
SECSRuntimeManager::getInstance().termRuntimeSetting();
--
Gitblit v1.9.3