ok, but here is the first entry in the help file for TComponentList: Use TComponentList to store and maintain a list of components. TComponentList provides properties and methods to add, delete, rearrange, locate, access, and sort components. Like TObjectList, TComponentList controls the memory of its components; unless the OwnsObjects property is set to False (or the components are removed with the Extract method). TComponentList frees its components when they are removed from the list or when the TComponentList instance is itself destroyed.
fairly straight forward isnt it? The rule of thumb still stands except for the documented exceptions such as this one. Phil. ----- Original Message ----- From: "Alistair George" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Tuesday, November 11, 2003 3:24 PM Subject: [DUG]: Close failure > Hello Phil, > PM> list. Either way - it's all in the helpfile... you know, the one that came > PM> with Delphi ;-) > Yes, I did peruse that before asking. My understanding was that if you create an > object, you must free it, which is what I was doing. > However, this rule of thumb obviously does not always apply, which is a worry, > what else I am creating must be suspect as well if I try to free it. > > It would seem that others with greater knowledge of programming have > similar problems as many components eg RXtools are attempting to free > nonexistent objects and I have read posts elsewhere where Graphics.pas etc. is the > cause of some (list) freeing errors. Not a perfect world eh. > Al+ > > -------------------------------------------------------------------------- - > New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] > Website: http://www.delphi.org.nz > To UnSub, send email to: [EMAIL PROTECTED] > with body of "unsubscribe delphi" > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ > --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/