MikeKraken
January 26th, 2005, 02:03 AM
Hi, everybody. I'm having an issue with threading. One of my threads keeps on running even after I've called the End command and my GUI exits, but the process continues to run until the thread has finished. I use the Abort() command, but the thread does not abort. I've tried a variety of things (including Join(), Interrupt(), Sleep(), myThread = Nothing...), but I can't seem to get the thread to JUST STOP.
Here's the piece of code I'm running:
If Me.activeThread.ThreadState = ThreadState.Running Then
Me.activeThread.Abort()
End If
Also, an aside, when I was doing Suspend() followed by Abort(), I got the ThreadState of 130... I don't think that's supposed to happen!
Any help with this issue is greatly appreciated.
... Mike. *_*
Here's the piece of code I'm running:
If Me.activeThread.ThreadState = ThreadState.Running Then
Me.activeThread.Abort()
End If
Also, an aside, when I was doing Suspend() followed by Abort(), I got the ThreadState of 130... I don't think that's supposed to happen!
Any help with this issue is greatly appreciated.
... Mike. *_*