Windows NT Service internal error
Posted on 2002-06-05
I've written a Windows NT Service application using delphi 5. The service application purpose is to transfer files from one location to another location using http.
This application frequently (15 mins) checks the sql server database for new data, and if its there then creates a tab delimited text file from the new data and transfers that created text file to another remote location using http. So this is the basic functionality of the application.
The problem is while it is transferring files if user stops the NT service it gives some windows nt internal error. Subsequently it neither allows us to start/stop the application (though the status is shown as stopped in services applet in control panel).
If this happens I had to restart the server then I can restart the application. How can i stop the service without restarting the server itself. B-coz no one can afford to restard the live server.
The other problem is it is taking maximum cpu time, how can i reduce this.
Thanks in advance