I have a treeview whose data property points to the following data structure:
TData = record
bRestored : boolean;
sSize : string;
dtDate : TDateTime;
I call Dispose(Node.Data) for each node when the treeview is distroyed, but the memory is not freed.
If I change the strings to PChar it seems to work ok, but when I retrieve the data in another procedure it is not what it was set to, regardless of what casting I do.