What is the difference between "TerminateThread" and "ExitThread" APIs ?
I have created a new thread to process a lenghthy loop so VB doesn't hang and I can still get on with my other work during the loop.
I used the CreateThread API and it works as expected . What I CAN'T do is end the thread prematurely so I can exit the loop if it is far too long.
I have tried the 2 APIs above to kill the thread but it crashes the whole app ! (:
I have have already seen the example given on AllAPI.net Site and searched the net for other more info but I can't find anything that works to end a thread !!!
Does anybody have a working example with "TerminateThread" or "ExitThread" APIs to kill a thread ?