How to kill a worker thread, or stop the thread manually using api calls? the main thread creates another worker thread to do some polling.. if the main thread decides to kill the worker thread, before the worker thread can die how to do it?

how do you do concurrent processing with COM anyways?

I am doing something like this..

'start the thread here
sub startAThread ()
startTheWork
createThread ' the thread is running doing work
contineTheWork ' the main thread is busy
finishedWork
'now if the thread had died, no probs
'but if it is still working, no good, killit.
killThread 'at this point kill the thread anyways
'the entire app crashes unfortunately

end sub