CAN修复
This commit is contained in:
@@ -186,8 +186,9 @@ namespace MonitorModule.ViewModels
|
||||
if (!string.IsNullOrEmpty(TestStatus))
|
||||
_canSignalBroadcaster?.UnregisterScope(TestStatus);
|
||||
|
||||
// 3. 释放容器作用域
|
||||
_scope?.Dispose();
|
||||
// 注意:_scope 是从 GlobalInfo.ScopeDic 借用的工位作用域,拥有者是 AutomatedTestingViewModel,
|
||||
// 这里不能 Dispose,否则关闭监控页就会销毁整个工位(DeviceManager/SystemConfig 全部失效,
|
||||
// 并让 CAN 卡的作用域引用计数提前归零)。只清理本页面自己的资源即可。
|
||||
Channels.Clear();
|
||||
AvailableMethods.Clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user