I'm a newbee to services and have a question about the onstop sub.
I have a service that handles at lot of DB transactions.
Is there anyway that the onstop can check if work is being done, and let it finish, before it shuts down the service?
You are going to have to use threading for you transactions. Then you can check the thread.isbusy to see if work is being done.
Threading can be a monster and more involved that I want to post here, but there are lots of code examples out on the net.