reynaldi81,

> hi i'm trying to put a record into TStringList.
>
>
> type
> TARecord = record
>   s: String[5];
> end;
>
> var
> rec: TARecord;
> begin
>  GetMem(rec, SizeOf(TARecord));
>  StringList.AddObject('', rec);
> end;
>
>
> my question is, do i have to freemem each record in tstringlist?

Yes, because TStringList does not know what to do with the TObjects in the 
list.

>From your example, you don't seem to use the strings in the string list. 
Why don't you just use TObjectList, which has no strings overhead?

Rory Daulton
[EMAIL PROTECTED] 


Reply via email to