Hi All.
I traced the CPU Usage issue I asked about yesterday.
It took me seriously about 6hrs of hacking my project about to find it.
I commented out all the code that basically did anything whne the app
ran etc. and the problem STILL remained. The other issue I had was an
8kb memory leak that if you just left the app. Running and used
taskmanager, you could see the exes memory usage increasing !
I then figured it MUST be a control being created by the form. And, I
was right.
We use IceLicense 1.5 I think it is, and THAT was causing the memory
leak AND the CPU usage !
I have to create the IceLicense control on the fly now, and its working
fine, i.e. not CPU usage, and no memory leak !!

Of course, this HAD to happen while I am on holidays ! AND the issue HAD
to be found at Xmas time...agh....ah well.

Jeremy

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Jeremy Coulter
Sent: Wednesday, 5 January 2005 15:54
To: 'NZ Borland Developers Group - Delphi List'
Subject: RE: [DUG] Odd CPU Usage


It does, but at the moment I am trying to find why the app. Also
increases by 4-8Kb a second every 4-5 mins with almost everything
commented out ! 
But I will for sure take a look and see what code I am using ATM that
uses sleep or app.processmessages.

Jeremy

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Wilkin, Kurt
Sent: Wednesday, 5 January 2005 15:44
To: NZ Borland Developers Group - Delphi List
Subject: RE: [DUG] Odd CPU Usage


on Wednesday, 5 January 2005 3:08 p.m. Jeremy Coulter wrote:
> Well this is the weired thing. All it does is sit there waiting for a
> user interaction or a bit of data from the comport.
> 
> Jeremy
> 


Does it use Sleep() or Application.ProcessMessages calls?

These can behave differently under different circumstances - 
under older versions of 'doze they'd send CPU to 100%, to
do with the OS thinking the app is using its whole timeslice, 
even though its relinquishing it straight away.

Cheers, Kurt.



-- 

This electronic message together with any attachments is confidential
and intended for the named recipient's use only.  If you are not the
intended recipient (i) do not copy, disclose or use the contents in any
way, (ii) please let us know by return email immediately then destroy
the message, and any hard copies of the message, and any attachments.
The sender of this message is not responsible for any changes made to
this message and/or any attachments and/or connection linkages to the
Internet referred to in this message after it has been sent.  Unless
otherwise stated, any pricing information given in this message and/or
attachments is indicative only, is subject to change and does not
constitute an offer to buy or sell securities or derivatives at any
price quoted.  Any reference to the terms of executed transactions
should be treated as preliminary only and subject to separate formal
written notification.  Where reference is made to research material
and/or research recommendations, the basis of the provision of such
research material and/or recommendations is set out in the relevant
disclaimer.

_______________________________________________
Delphi mailing list
[email protected] http://ns3.123.co.nz/mailman/listinfo/delphi




_______________________________________________
Delphi mailing list
[email protected] http://ns3.123.co.nz/mailman/listinfo/delphi



_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to