Custom NT Service not starting correctly
Posted on 2003-03-21
I have written a .exe program to run as a service.
For some reason, it will not start correctly. I have installed the Microsoft NT Service Control and I call it and it says that it installed correctly according to a log I am writing to but then I get a message from the Services window (where I am trying to start from) that says,
"Could not start the CustomService service on Local Computer. The service did not return an error. This could be an internal Windows error or an internal service error. If the problem persists, contact your system administrator."
The process in the program is:
Check command line arguments.
Attempt to start the service.
If successful, interval and enable a timer to perform tasks.
BAM! It stops. It never gets to do anything else. What I need is to figure out what the problem is but I don't get feedback and I am not trapping any errors.
Any ideas on how to go about solving this?