Hello:
I created a basic windows service that polls a db and sends emails to
our subscribers. In the onstart method I create a new thread and send
it on its way to do work. It should never end unless told to do so by
the onexit event I implemented in the worker object. However there
are the rare circumstance that the thread hits a catastrophic error
and exits the main process loop. So basically the service is now
useless. Is there a way that I can periodically check the state of
the thread in the service and take down the service normally in the
service implmentation.
Please let me know what you think,
Tim