Re: Dyn Arrays
- From: Jamie <jamie_ka1lpa_not_valid_after_ka1lpa_@xxxxxxxxxxx>
- Date: Sat, 23 Jun 2007 19:00:18 -0400
Alex Moore wrote:
Can I use SetLength to redimension a dynamic array.no, it don't leak memory how ever, it could slow things down a bit
For Instance can I do somthing like:
for I:= 1 to N do
begin
SetLength(MyArray, I);
Do Something with MyArray[I - 1];
end;
I am told that this leaks memory. Is that correct?
Thanks in advance.
alex.moore@xxxxxxxxxxx
depending on how fragmented your memory pool is.
--
"I'm never wrong, once i thought i was, but was mistaken"
Real Programmers Do things like this.
http://webpages.charter.net/jamie_5
.
- References:
- Dyn Arrays
- From: Alex Moore
- Dyn Arrays
- Prev by Date: Re: Dyn Arrays
- Next by Date: Re: Is it possible to write an "internet killer" with Delphi???
- Previous by thread: Re: Dyn Arrays
- Next by thread: Re: Is it possible to write an "internet killer" with Delphi???
- Index(es):