Stop a NT Service while it is working
Posted on 2003-12-02
I made a NT Service with Delphi 5 Enterprise.
This Service, is always waiting for a file and sometimes makes some job that lasts 2 minutes.
If I try to stop the service when it is working, I can't do this. I must wait the end of the job and then, when the service is IDLE, I can press the "Stop" button.
I'd like to have the "stopping" dialog that stills until the job is done and then the service stops regularly.
What can I do?
If I'm not so clear, please, ask me more!!