TTreeview not freeing memory

Hi

I have a treeview whose data property points to the following data structure:


TData = record
bRestored : boolean;
sSort,
sFile,
sSize : string;
dtDate : TDateTime;
end;

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.

Any ideas

Kevin Whynot
CSS Software

Comments

  • : Hi
    :
    : I have a treeview whose data property points to the following data structure:
    :
    :
    : TData = record
    : bRestored : boolean;
    : sSort,
    : sFile,
    : sSize : string;
    : dtDate : TDateTime;
    : end;
    :
    : 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.
    :
    : Any ideas
    :
    : Kevin Whynot
    : CSS Software
    :
    :
    You could try the Finalize() procedure.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion