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