Threads

S

S Shulman

Hi

I am looking for a method that returns all threads running under the
application so I can make sure that all threads are terminated when the user
closes the program

Thank you,
Shmuel Shulman
 
H

Herfried K. Wagner [MVP]

S Shulman said:
I am looking for a method that returns all threads running under the
application so I can make sure that all threads are terminated when the
user closes the program

Setting the threads' 'IsBackground' property to 'True' will cause them to be
terminated automatically when the main thread terminates.
 
S

S Shulman

Thanks,
Shmuel

Herfried K. Wagner said:
Setting the threads' 'IsBackground' property to 'True' will cause them to
be terminated automatically when the main thread terminates.
 

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

Similar Threads


Top