Sub Thread1_Ended(fail As Boolean, error As String) 'An error or Exception has occurred in the Thread
Log("Thread1 Ended, fail: " & fail & " error: " & error)
If(error = "wrong number of arguments") Then
Log("Try switching the compiler to 'Release' mode.")
End If
End Sub