Hello,
does the SetLength function in Delphi called with the second argument 0 free the memory used for the array?
Example:
var
Names: array of String;
i: Byte;
SetLength(Names,10);
for i:=0 to 9 do
Names[i] := '...';
SetLength(Names,0); // << does this code free memory used by Names array ?
and if this doesn't work, how can I free memory for array...
Thanks