in reply to Problem Stopping Service using Active State Perlsvc

After about 15 minutes of searching I found the docs of the NextEvent() method (yeah, maybe someone would find it sooner, I guess I'm not twised enough). The method accepts a timeout. What you need to do is to specify some timeout (1 second seems enough to me) so that you do call the ContinueRun() occasionaly. This of course means that you now have to check the $Event and write something to the log only if the ->NextEvent() did not return because of the timeout.

Jenda
XML sucks. Badly. SOAP on the other hand is the most powerfull vacuum pump ever invented.

  • Comment on Re: Problem Stopping Service using Active State Perlsvc