Author: Tomas Rutkauskas
Freeing a TList
Answer:
If there is any possibility of the freeing code being called re-entrantly, make
sure to store a nil in the list before freeing the object; your code should look
like this:
1 // original from Ray Lischner2 for i := 0 to List.Count - 1 do3 begin4 TempNode := List[i];
5 List[i] := nil;
6 TempNode.Free;
7 end;
8 List.Free;