thread terminate

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How to terminate immediately ?

after mThread.Start(); ...
I want to kill the thread , but mThread.Abort() don't terminate it
immediately, still see that the process keep going.
Is there any way to terminate it immediately ?
 
Abort should do the work but it's not that recommended.

Try using ManualResetEvent within your thread start method to check if it
needs to be terminated.

- Moty -
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top