Question onstop

SylleRylle

Member
Joined
Feb 16, 2010
Messages
6
Programming Experience
1-3
Hi.

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?

Thanks.

/SylleRylle
 
Threading

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.

Ty
 
Back
Top