Re:Stringlist question...
Only free'ing and recreating the stringlist won't work. The problem is the
heap that will become more and more fragmented. The only way to solve that
problem is by freeing ALL dynamically allocated data and reallocate it
(which is almost the same as restarting the application).
ps. You can speedup the processes of adding items to a stringlist if you set
the Capacity property to a rough estimate of the final number of items in
the list.
"Dodgy" <Do...@earth.planet.universe> schreef in bericht
news:pdjo5tsbk8h7a2ir7fcglj0toplegfqceu@4ax.com...
Quote
> I have several temp stringlists I use in my program, some of which
> have several thousand entries.
> For some reason when I want to clear the temp workspace stringlists a
> .clear works fine, but the program seems to run a lot slower the
> second time through, than the first. If I shutdown and restart it,
> it's back to normal speed again.
> Is there any reason for this, or should I .free and .create them to
> wipe them completely?
> Dodgy.