Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2006 Jun : Help with NTservice in Delphi 6
| Subject: | Help with NTservice in Delphi 6 |
| Posted by: | "Fredrik" (f.obe..@hotpop.com) |
| Date: | 6 Jun 2006 13:49:45 |
I just got a Delphi 6 project in my hand and I have a question about how services are handled.
There is a service instantiated from TService which works pretty well. When the service starts it read some information from an ini-file. If that file does not exist, the service shall not be started. What happens is that an exception is thrown and the service is not started. The text of the exception is written to the event log. Everything is good that far. But what bothers me (and my project leader) is the text in the DOS-box (where the service is started) which reports something like:
Starting the acme service
The acme service could not be started
The acme service did not report an error message
Is it in any way possible to replace the 'The acme service did not report an error message' with something like 'There was an error, please see the event log for more information'?
Please bare with me, I'm a noob on services...
/Fredrik