S
Shawn Meyer
Hello,
I have a windows service. When the onstart fires, my app creates two
threads. The first is a processing thread and the second is a watcher that
makes sure the everything is ok with the first thread. When a problem is
detected the second (watcher) thread stops the processing thread and then
throws an exception. This exception does not stop the service like I would
think.
My question is, what is the best way for the watcher thread to shut the
service down.
Thanks,
Shawn
I have a windows service. When the onstart fires, my app creates two
threads. The first is a processing thread and the second is a watcher that
makes sure the everything is ok with the first thread. When a problem is
detected the second (watcher) thread stops the processing thread and then
throws an exception. This exception does not stop the service like I would
think.
My question is, what is the best way for the watcher thread to shut the
service down.
Thanks,
Shawn