V20260112-2.3.7
在更多关键的地方添加了错误捕获。 CsvWriter修改为DataRecorder。 打包图片不再开启新线程处理。 部分错误修复。
This commit is contained in:
@@ -166,8 +166,8 @@ void __stdcall ReconnectDevice(unsigned int nMsgType, void* pUser){
|
||||
return;
|
||||
}
|
||||
|
||||
qDebug() << QString::fromStdString(Username) << " reconnect failed, waiting 1 seconds before retry...";
|
||||
std::this_thread::sleep_for(std::chrono::seconds(1));
|
||||
qDebug() << QString::fromStdString(Username) << " reconnect failed, waiting 500 ms before retry...";
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(500));
|
||||
}
|
||||
|
||||
// 如果runFlag为false,线程退出
|
||||
@@ -332,11 +332,11 @@ bool Hd_CameraModule_HIK_General::writeData(std::vector<cv::Mat>& mat, QByteArra
|
||||
data = lastError.toUtf8();
|
||||
return true;
|
||||
}
|
||||
if (data == "clearCache") {
|
||||
QMutexLocker locker(n_mutex);
|
||||
queuepic.clear();
|
||||
return true;
|
||||
}
|
||||
//if (data == "clearCache") {
|
||||
// QMutexLocker locker(n_mutex);
|
||||
// queuepic.clear();
|
||||
// return true;
|
||||
//}
|
||||
if (data.contains("exposure")){
|
||||
auto commandList = data.split('_');
|
||||
QMutexLocker locker(n_mutex);
|
||||
|
||||
Reference in New Issue
Block a user