Kill all running threads

  • Thread starter Thread starter John
  • Start date Start date
J

John

If my main UI thread starts a worker thread, who starts
its own worker thread. So if i just close my app, in the
closing event i can kill the thread the UI thread starts.
but how can i kill the worker thread that the UI thread's
worker thread started?
 
Designate your worker threads as Background Threads. All background threads
are terminated automatically when all foreground threads are terminated.

-Rob Teixeira [MVP]
 
Back
Top