BlueMorpho
Member
I have a service running and I want to stop it. I have tried:
StopService(Me)
CancelScheduledService(Me)
neither of which actually stop the service.
The service is started by a forground activity with:
StartService(Service1Sec)
('Service1Sec' is the name of the service being started)
(The forground activity is then closed down after the starting the service)
The service uses:
StartServiceAt( Me, DateTime.Now + 1 * 1000, True)
within the Service_Start event to keep it restarting every second
I have tried: StopService(Me) and StopService("") within the Service_Start event to stop the service.
The service continues to restart every second whatever I do.
Can anyone see why the service won't stop?
StopService(Me)
CancelScheduledService(Me)
neither of which actually stop the service.
The service is started by a forground activity with:
StartService(Service1Sec)
('Service1Sec' is the name of the service being started)
(The forground activity is then closed down after the starting the service)
The service uses:
StartServiceAt( Me, DateTime.Now + 1 * 1000, True)
within the Service_Start event to keep it restarting every second
I have tried: StopService(Me) and StopService("") within the Service_Start event to stop the service.
The service continues to restart every second whatever I do.
Can anyone see why the service won't stop?