出于某种原因,我无法在调用 Thread.Join() 时结束线程。我疯了吗?
Public Sub StartThread()
_opsthread = New Thread(AddressOf OpsThread)
_opsthread.IsBackground = True
_opsthread.Start()
End Sub
Public Sub StopThread()
_continue = False
_opsthread.Join()
'Application Hangs Here
End Sub
Public Sub OpsThread()
While _continue
Thread.Sleep(1000)
End While
End Sub