When the TCustomTree.Clear is called, it is only freeing the shape, and not setting them to nil.
Could you please include the following change in your next code release.
// 9th line from the Procedure Decleration
for t:=0 to Shapes.Count-1 do Shapes[t].Free;
for t:=0 to Shapes.Count-1 do Shapes.FreeAndNillItem(t);
This will fix some problems I have been having when checking if a shape is assigned.
TeeTree VCL for Borland Delphi and C++ Builder.
1 post • Page 1 of 1