Try MemProof - it is VERY good... Do a search to get it (I can't remember the URL), and get both the old .EXE version and the latest current .ZIP version.. Install the .EXE first - it has the help files with it, then overwrite it with the .ZIP version..
Oh, with TListView and with TObjectList, to empty a list, just doa Clear, when you have 'Finally' finished with the list, do FreeAndNil(ListName) Good Luck, Frank Reynolds, Walger Software >I was able to get memcheck to work with one of my other projects. It found a >memory leak with a TListView. It hasnt found any with my current project >(and it's notorious with memory problems). > >----- Original Message ----- >From: "Sean Cross" <[EMAIL PROTECTED]> >To: "'Delphi-Talk Discussion List'" <[email protected]> >Sent: Monday, November 14, 2005 3:09 PM >Subject: RE: memory management with TListView > > > > >>If you want to check for memory leaks, compile your app with FastMM or >>MemCheck. Either one will point out your memory leaks. >> >> >>Regards >> >>Sean >>--------------------------------------- >>Sean Cross >>mailto:[EMAIL PROTECTED] >> >> >> >> >>>-----Original Message----- >>>From: [EMAIL PROTECTED] >>>[mailto:[EMAIL PROTECTED] On Behalf Of Richard R >>>Sent: 15 November 2005 9:40 a.m. >>>To: 'Delphi-Talk Discussion List' >>>Subject: memory management with TListView >>> >>> >>>Hello. I'm adding a undo system into the software I am >>>developing. I created >>>a TObject derived class to handle the data required to >>>perform a 1 level >>>undo/redo. However, I am concerned about the memory being >>>allocated and >>>freed. >>> >>>The class does not allocate any memory, just initializes it's >>>own variables. >>> >>>I am adding each TpmUndo object into the list view like this >>>lvPM.AddItem(caption, TpmUndo.Create(a pointer to a abstract object)); >>> >>>And in a OnDeletion event, I added >>>TpmUndo(Item.Data).Free; >>> >>>I should know better, but I can't think of any other way to >>>handle the >>>memory being allocated for each undo object I'm adding to the >>>list. I know >>>that when you create something, you need to free it. I am >>>questioning if the >>>OnDeletion event is freeing that object's memory. So far I >>>dont have any >>>problems with this, but perhaps you can tell me if there is >>>still memory >>>leaks or perhaps a better way to add a TpmUndo object into the list? >>>__________________________________________________ >>> >>> __________________________________________________ Delphi-Talk mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi-talk
