Re: [fpc-pascal] TObjectList works; TFPObjectList gives memory leaks

2010-08-01 Thread Jim
On 1-8-2010 14:29, Marco van de Voort wrote: > In our previous episode, Marco van de Voort said: >> >> Call inherited create(true) in your constructor instead of just create(). > > Hmm no, that is not it either, since the constructor is overloaded. Then a > small example program to test is really

Re: [fpc-pascal] TObjectList works; TFPObjectList gives memory leaks

2010-08-01 Thread Marco van de Voort
In our previous episode, Marco van de Voort said: > > Call inherited create(true) in your constructor instead of just create(). Hmm no, that is not it either, since the constructor is overloaded. Then a small example program to test is really needed. If you can reproduce it, please file a bug at

Re: [fpc-pascal] TObjectList works; TFPObjectList gives memory leaks

2010-08-01 Thread Marco van de Voort
In our previous episode, Jim said: > > Still working on my file indexer: > http://bitbucket.org/jb/flocate/changeset/6c6fa90e632e The question should be why tobjectlist works. Since you don't set the "freeobjects" anywhere. Call inherited create(true) in your constructor instead of just create()

[fpc-pascal] TObjectList works; TFPObjectList gives memory leaks

2010-08-01 Thread Jim
Hi all, Still working on my file indexer: http://bitbucket.org/jb/flocate/changeset/6c6fa90e632e Each search for files creates a TObjectList descendant (TDirectoryEntryList, see directoryentrylist.pp) On finding a file, the search class createa a DirectoryEntry object with the relevant file prop