Service not stopping

belen at netcom.no belen at netcom.no
Mon Oct 22 13:22:16 CEST 2001


Yeah,

The problem is that my program never gets to the while loop. Is there a 
way of regaining control of the service process...Can I create then two 
simultanous processes an control bot of them? Might the problem  have 
been the way I have created  the scheduler process?


self.Start_Scheduler()
				
		import servicemanager
		
		servicemanager.LogMsg(
			servicemanager.EVENTLOG_INFORMATION_TYPE,
			servicemanager.PYS_SERVICE_STARTED,
			(self._svc_name_,''))

		while 1:
					
			rc=win32event.WaitForMultipleObjects
((self.hWaitStop,self.hSched),0,win32event.INFINITE)

Thanks again

Belen

			





More information about the Python-list mailing list