it is recommended to stop each of them (structure wise). Additionnally, it
would be good not to make your threads sleep for too long, because they will
not exit before the sleep method is done, so if you make the thread sleep
for 60,000ms, then the thread will not exit until the minute of sleep is
done. So it can slowdown the closing of your service by quite a lot.
I hope it helps
ThunderMusic
"Terry Olsen" <to******@hotmail.com> a écrit dans le message de news:
eV**************@TK2MSFTNGP15.phx.gbl...
I have a windows service that starts up about 6 class modules, that each
start a worker thread. When I stop my windows service, will these classes
and threads go away? Or do I need to explicitly stop each of them?