Wilfried Mestdagh wrote:
Hello Rob,

RK> The pointer you pass to Dispose is just of type Pointer, not PRecord.
RK> That's because Pointer is the declared type of the TList.Items property.
RK> Therefore, Dispose doesn't know that there is a str field, so it doesn't
RK> do anything about freeing the string's memory.

Thanx i did not knew that. Is this also the case (like in the example
from Frans) if the string (in this case the record with the string) go
out of scope ?

I don't understand your question. Could you rephrase it, or provide some code?

--
Rob

__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to