From d2df50ab05a9d9a85a4b735786fe3f2b6e00186e Mon Sep 17 00:00:00 2001
From: chenluhua1980 <Chenluhua@qq.com>
Date: 星期一, 26 一月 2026 22:19:17 +0800
Subject: [PATCH] 1.已把空指针和防护都补上了:创建消息失败直接返回并删除 action;spooling/发送/序列化都会跳过空消息并记录错误,避免再因 m_pSendMessage 为空导致崩溃或写出坏缓存。

---
 SourceCode/Bond/Servo/CEqProcessStep.cpp |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/SourceCode/Bond/Servo/CEqProcessStep.cpp b/SourceCode/Bond/Servo/CEqProcessStep.cpp
index 4f08edc..b7d4b85 100644
--- a/SourceCode/Bond/Servo/CEqProcessStep.cpp
+++ b/SourceCode/Bond/Servo/CEqProcessStep.cpp
@@ -22,25 +22,26 @@
 	{
 		CReadStep::getAttributeVector(attrubutes);
 
+		unsigned int weight = 31;
 		attrubutes.addAttribute(new CAttribute("Glass ID",
-			m_strGlassId.c_str(), ""));
+			m_strGlassId.c_str(), "", weight++));
 		attrubutes.addAttribute(new CAttribute("Start Time",
-			m_strStartTime.c_str(), ""));
+			m_strStartTime.c_str(), "", weight++));
 		attrubutes.addAttribute(new CAttribute("End Time",
-			m_strEndTime.c_str(), ""));
+			m_strEndTime.c_str(), "", weight++));
 		attrubutes.addAttribute(new CAttribute("Total Parameter",
-			std::to_string(m_nTotalParameter).c_str(), ""));
+			std::to_string(m_nTotalParameter).c_str(), "", weight++));
 		attrubutes.addAttribute(new CAttribute("Total Group",
-			std::to_string(m_nTotalGroup).c_str(), ""));
+			std::to_string(m_nTotalGroup).c_str(), "", weight++));
 		attrubutes.addAttribute(new CAttribute("Current Group",
-			std::to_string(m_nCurrentGroup).c_str(), ""));
+			std::to_string(m_nCurrentGroup).c_str(), "", weight++));
 
 		char szName[256];
 		int index = 0;
 		for (auto item : m_params) {
 			sprintf_s(szName, 256, "Parameter %d", ++index);
 			attrubutes.addAttribute(new CAttribute(szName,
-				item.c_str(), ""));
+				item.c_str(), "", weight++));
 		}
 	}
 
@@ -118,7 +119,7 @@
 	int CEqProcessStep::onTimeout()
 	{
 		CReadStep::onTimeout();
-		LOGI("<CEqProcessStep> onTimeout.");
+		LOGE("<CEqProcessStep> onTimeout.");
 
 		return 0;
 	}

--
Gitblit v1.9.3