lijun 6 months ago
parent
commit
4ce631b84f
1 changed files with 8 additions and 1 deletions
  1. 8 1
      Pas.ScadaService/StartUp.cs

+ 8 - 1
Pas.ScadaService/StartUp.cs

@@ -51,7 +51,14 @@ namespace Pas.ScadaService
             };
             _scada.Start();
             Thread.Sleep(3000);
-            GopTimeCalc.Load(config, sqlConn, GetAllData());
+            try
+            {
+                GopTimeCalc.Load(config, sqlConn, GetAllData());
+            }
+            catch (Exception e)
+            {
+                XTrace.Log.Error(e.ToString());
+            }
             _isStart = true;
         }
         private static List<Model.Data> GetAllData()