Hcsy 8 жил өмнө
parent
commit
5f2ed6e9cc

+ 1 - 1
UAS-MES/FunctionCode/Make/Make_BigBoxWeight.cs

@@ -255,7 +255,7 @@ namespace UAS_MES.Make
                 SystemInf.OpenPort.Remove(serialPort1.PortName);
                 thread.Interrupt();
             }
-            thread.Abort();
+            //thread.Abort();
         }
 
         private void PrintLabel_SelectedValueChanged(object sender, EventArgs e)

+ 1 - 1
UAS-MES/FunctionCode/Make/Make_CartonBoxWeigh.cs

@@ -237,7 +237,7 @@ namespace UAS_MES.Make
                 SystemInf.OpenPort.Remove(serialPort1.PortName);
                 thread.Interrupt();
             }
-            thread.Abort();
+            //thread.Abort();
         }
 
         private void StartWeight_Click(object sender, EventArgs e)

+ 1 - 1
UAS-MES/FunctionCode/Make/Make_ColorBoxWeigh.cs

@@ -234,7 +234,7 @@ namespace UAS_MES.Make
                 thread.Interrupt();
                 thread.Join();
             }
-            thread.Abort();
+            //thread.Abort();
         }
 
         private void Confirm_Click(object sender, EventArgs e)

+ 1 - 1
UAS-MES/FunctionCode/Make/Make_PackageCollectionWeigh.cs

@@ -428,7 +428,7 @@ namespace UAS_MES.Make
                 SystemInf.OpenPort.Remove(serialPort1.PortName);
                 thread.Interrupt();
             }
-            thread.Abort();
+            //thread.Abort();
             dh.Dispose();
         }
 

+ 1 - 1
UAS-MES/FunctionCode/Make/Make_PalletWeigh.cs

@@ -269,7 +269,7 @@ namespace UAS_MES.Make
                 SystemInf.OpenPort.Remove(serialPort1.PortName);
                 thread.Interrupt();
             }
-            thread.Abort();
+            //thread.Abort();
         }
         private void recordResult(string palletcode, string weigh, string time)
         {

+ 1 - 1
UAS-MES/FunctionCode/Make/Make_SpecialCartonPack.cs

@@ -339,7 +339,7 @@ namespace UAS_MES.Make
                 SystemInf.OpenPort.Remove(serialPort1.PortName);
                 thread.Interrupt();
             }
-            thread.Abort();
+            //thread.Abort();
             dh.Dispose();
         }
 

+ 1 - 1
UAS-MES/FunctionCode/SystemSetting/SystemSetting_ScaleTest.cs

@@ -96,7 +96,7 @@ namespace UAS_MES.SystemSetting
             StopTest.PerformClick();
             try { ReadData = false; }
             catch (Exception) { }
-            thread.Abort();
+            //thread.Abort();
         }
 
         private void StopTest_Click(object sender, EventArgs e)