Commit 91d87d09 authored by wangjunqiang's avatar wangjunqiang

防止配置不载入导致的crash

parent 5a2fce42
...@@ -198,8 +198,16 @@ namespace GcDevicePc.GCBuffer ...@@ -198,8 +198,16 @@ namespace GcDevicePc.GCBuffer
public void LoadStatus() public void LoadStatus()
{ {
HwConfigFile = new IniFile(_filename); HwConfigFile = new IniFile(_filename);
try
{
GetHWConfig(); GetHWConfig();
} }
catch
{
}
}
public bool GetHWConfig() public bool GetHWConfig()
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment