[DUG] Windows Service issue

Myles Penlington myles at ams.co.nz
Tue May 29 14:18:06 NZST 2007


Is your main loop like this? You need to check the requests and the
Terminated flag.

 

    ServiceThread.ProcessRequests(false);

    while not Terminated do begin

      ...

 

      ServiceThread.ProcessRequests( False );

    end;

 

From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz]
On Behalf Of Jeremy Coulter
Sent: Tuesday, 29 May 2007 02:09
To: 'NZ Borland Developers Group - Delphi List'
Subject: [DUG] Windows Service issue

 

Hi All.

 I have a windows service that is giving my some issues. Well one
really. When I try to shut down windows, it wont close, and I have
managed to isolate that its my Windows service that I have written. If I
close down my service, then the PC will shutdown/restart.

 

I just created a standard windows service in D2K7, and have not had a n
issue like this before with other services.

There isnt anything special I need to do is there? It seems a really
strange thing to have happen

 

jeremy

 

Internal Virus Database is out-of-date.
Checked by AVG Free Edition.
Version: 7.5.467 / Virus Database: 269.6.4/789 - Release Date:
04/05/2007 17:49



Attention:
This communication is confidential and may be legally privileged.  If you are not the intended recipient, please do not use, disclose, copy or distribute it, other than to return it to us with your confirmation that it has been deleted from your system.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.adventureeducation.co.nz/pipermail/delphi/attachments/20070529/d07b593a/attachment.html


More information about the Delphi mailing list