|
| Re: Windows Service - trying to stop - gives error |
| Iniciado por guest, 25,sep. 2015 15:45 - 4 respuestas |
| |
| | | |
|
| |
| Publicado el 25,septiembre 2015 - 15:45 |
Hello,
using Windev 20 66r Creating Windows Service
WD Service supplied with Windev. When I execute the exe supplied with Windev, this program works great. But after compiling with Windev 20, when I execute the same program (exe), I get error while trying to stop the service. This error occurs whenever I try to stop the service, either through windows interface or through the same exe. The error message is :
Failure sending the command to the SERVICE service. System Error Details: The service did not respond to the start or control request in a timely fashion.
Eventually the services is stopped, but the above error appears. What would be reason for this error. Surprise is that the exe supplied with Windev work fine with no error. Probably it's been compiled with earlier version of Windev, I presume.
Any solution to overcome this problem, as I'm planning to use ver 20. only.
Happiness Always BKR Sivaprakash |
| |
| |
| | | |
|
| | |
| |
| Publicado el 27,septiembre 2015 - 05:53 |
Hello,
Exactly this command gives the above error.
ServiceStop(ServiceName)
If compiled in windev 20. Any work around ?
Happiness Always BKR Sivaprakash |
| |
| |
| | | |
|
| | |
| |
| Publicado el 27,septiembre 2015 - 16:41 |
Hi,
if you stop a Service, the Service gets the stop command from the Windows Service control Manager (as well as start, resume, pause etc).
Normally the Service should respond after a given time, if the Service does not respond within this give time, the error you mentioned occurs.
So you should check, wheather there is a Long process in the "called in the Loop" section of the Service, which is not finished (a thread, database Operation etc.).
Best Regards
Stefan- |
| |
| |
| | | |
|
| | |
| |
| Publicado el 28,septiembre 2015 - 03:24 |
Hello,
This Service just writes free memory space in the event log. That's all.
This is not a program written by me, but supplied with windev (WD Service). If I execute the Exe supplied, with windev, it works perfect. If I compile in Windev 20, without modifying anything, and execute that exe I get the error.
Happiness Always BKR Sivaprakash |
| |
| |
| | | |
|
| | |
| |
| Publicado el 28,septiembre 2015 - 11:54 |
Hello,
The below command is executed
ServiceWriteEventLog("Elifa - reading the available memory space" + CR + SysSpace() + " bytes ", elInformation)
Happiness Always BKR Sivaprakash |
| |
| |
| | | |
|
| | | | |
| | |
|