Thanks for that. I'm not using Delphi on a day to day basis, so I was along the right lines just from memory...
Cheers, C. -----Original Message----- From: James Sugrue [mailto:[EMAIL PROTECTED] I think TcomponentList is inherited from TObjectList so the list members should be freed when the components are? I've never used either but the help file reads that way. So short answer is you probably don't need to clear the list. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Is the following possible reasoning? You've added DirMonitor1 to DirMonList. You free DirMonitor1. When you call DirMonList.Clear, internally maybe it tries to reference and free DirMonitor. Have a look at the source maybe. One solution might be to cycle through your DirMonList and free all items yourself. After that, you shouldn't have to call Clear, but can should free your DirMonList straight away. Alternatively, can you use TObjectList and see if it frees contained objects for you? Not sure how accurate these are, but maybe some food for thought. [snip] --------------------------------------------------------------------------- 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/
