Re: Why Does My Program Slow Down?
- From: erewhon@xxxxxxxxxx (J French)
- Date: Thu, 14 Dec 2006 09:32:54 GMT
On 13 Dec 2006 09:01:08 -0800, "jrodenhi" <jack@xxxxxxxxxxx> wrote:
Good idea!
The current inventory of existing objects part could be just the ticket
for finding the errant code. I'm thinking of making a descendant of
TObject called TMyObject, put the Create and Destroy code in my object
and then have all my objects descend from that. I would probably want
to also create a TMyStringList rather than trying to change the
ancestry of the standard one. This will involve a lot of search and
replace in my code. I wonder if there is a better way. Any thoughts?
You could 'outscope' the original TStringList code, Delphi uses the
last reference found in the Uses clause, so if all your tweaks are in
one unit (say jrutils.pas) you can simply make quite sure that that
unit is the last used in all Uses clauses.
To be honest I prefer to explicitly identify the location by:
SL := jrutils.TStringList.Create
.
- Follow-Ups:
- Re: Why Does My Program Slow Down?
- From: jrodenhi
- Re: Why Does My Program Slow Down?
- References:
- Why Does My Program Slow Down?
- From: jrodenhi
- Re: Why Does My Program Slow Down?
- From: Nicholas Sherlock
- Re: Why Does My Program Slow Down?
- From: jrodenhi
- Re: Why Does My Program Slow Down?
- From: Nicholas Sherlock
- Re: Why Does My Program Slow Down?
- From: jrodenhi
- Re: Why Does My Program Slow Down?
- From: jrodenhi
- Re: Why Does My Program Slow Down?
- From: Jim P
- Re: Why Does My Program Slow Down?
- From: jrodenhi
- Re: Why Does My Program Slow Down?
- From: J French
- Re: Why Does My Program Slow Down?
- From: jrodenhi
- Why Does My Program Slow Down?
- Prev by Date: Partnership
- Next by Date: Re: Once and for all! Fastest way to load large jpeg
- Previous by thread: Re: Why Does My Program Slow Down?
- Next by thread: Re: Why Does My Program Slow Down?
- Index(es):
Relevant Pages
|