This commit is contained in:
2019-11-26 14:42:17 +01:00
parent d4dfcd1744
commit de1d935624
13 changed files with 450 additions and 78 deletions

View File

@@ -397,10 +397,13 @@ Public Class frmRoutineManager
Function removeThreadFromList(n) As Boolean
Try
For Each t As System.Threading.Thread In threads
If t.Name = n Then
threads.Remove(t)
Return False
If t IsNot Nothing Then
If t.Name = n Then
threads.Remove(t)
Return False
End If
End If
Next
Catch ex As Exception
VERAG_PROG_ALLGEMEIN.cErrorHandler.ERR(ex.Message, ex.StackTrace, System.Reflection.MethodBase.GetCurrentMethod.Name)