Newsgroups : Borland : borland.public.delphi.rtl.win32 : 2008 Apr : Service application consuming %50 of CPU

www.cryer.info
Managed Newsgroup Archive

Service application consuming %50 of CPU

Subject:Service application consuming %50 of CPU
Posted by:"Faruk Demirel" (faruk.demir..@gmail.com)
Date:Sun, 6 Apr 2008 23:27:45

Hi;

I am not sure here is the correct group for this subject but at least it
seemed as if to me:)
If not sorry.

I have a service appliccation and noticed that it consumes %50 of CPU when I
start it.

I did a test with an empty (jobles/ does nothing ) service application.

There is just these lines at the "serviceexecute" method and saw that it
also consumes %50 of CPU.

What is the problem and How can I fix this?


procedure T_deneme1.ServiceExecute(Sender: TService);
begin
    while not Terminated do
    ServiceThread.ProcessRequests(False);
end;

I am using D2007 on XPPro sp2 on P43.6GHZ CPU, 2 GB of RAM.

Best regards.

Faruk.

Replies:

www.cryer.info
Managed Newsgroup Archive