B
Bob Day
VS 2003, vb.net ...
Is there an easy way to kill from the main form all threads running ? Is
there a thread collection to iterate through to kill each one? I know each
thread's name, so could I kill it via the name? The trick is I am not in
any of these threads I am trying to kill. None of these threads on there
own ever die (they are always running in the background).
I think I could set up an array when the threads are started, and then go
back to that array and iterate through it somehow, but I was looking for
something simpler.
In debug mode, closing the main form & exit.application does not seem to
kill running threads.
Somthing like:
Kill.AllThreads
would be perfect.
thansk!
Bob Day
Is there an easy way to kill from the main form all threads running ? Is
there a thread collection to iterate through to kill each one? I know each
thread's name, so could I kill it via the name? The trick is I am not in
any of these threads I am trying to kill. None of these threads on there
own ever die (they are always running in the background).
I think I could set up an array when the threads are started, and then go
back to that array and iterate through it somehow, but I was looking for
something simpler.
In debug mode, closing the main form & exit.application does not seem to
kill running threads.
Somthing like:
Kill.AllThreads
would be perfect.
thansk!
Bob Day