What's in the your on Execute event? Are you calling the
ServiceThreads.ProcessRequests?
>From: David O'Brien <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
>Subject: [DUG]: Service Application not Stopping
>Date: Mon, 8 Nov 1999 11:20:32 +1300
>
>I have created a service apllication in D5Pro, and can install and start
>the
>service happily in NT4 SP5. However, I cannot stop the service. The D5 Help
>is no help to me here.
>
>Where do you put code to terminate the service when the service is stopped
>from the services manager? (and what is the code?)
>
>I have a loop in the OnExecute event which has a boolean global variable
>controlling it. The help says when the Execute code finishes the service
>will stop. So in the OnStop event I set the Boolean false, and say Stopped
>:= True.
>
>What am I missing. (First time with services).
>
>Thanks in advance,
>David O'Brien.
>---------------------------------------------------------------------------
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz