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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
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.
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe

Reply via email to