Browse Source

remove the calling of disconnect when get image from sem(eds).

gsp 3 years ago
parent
commit
4c81cc9231

+ 6 - 6
OTSIncAMeasureApp/5-OTSMeasureStatuImageFun/OTSBSEImageFun.cs

@@ -217,12 +217,12 @@ namespace OTSMeasureApp
                 log.Error(strErrorInfo);
 
             }
-            finally
-            {
-                //cfun.ScanFinishedInstance();
-                cfun.DisconnectSem();
-                //cfun.FreeHardware();
-            }
+            //finally
+            //{
+            //    //cfun.ScanFinishedInstance();
+            //    cfun.DisconnectSem();
+            //    //cfun.FreeHardware();
+            //}
 
             return GetImgCount;
         }

+ 9 - 9
OTSIncAMeasureApp/5-OTSMeasureStatuImageFun/OTSMeasureStatusWindow.cs

@@ -1557,17 +1557,17 @@ namespace OTSMeasureApp
                 }
 
 
-                try
-                {
-                    cfun.DisconnectSem();
-                    //cfun.FreeHardware();
+                //try
+                //{
+                //    //cfun.DisconnectSem();
+                //    //cfun.FreeHardware();
 
 
-                    log.Trace("-------释放controller对象------");
-                }
-                catch (Exception)
-                {
-                }
+                //    log.Trace("-------释放controller对象------");
+                //}
+                //catch (Exception)
+                //{
+                //}
             }
         }