[fpc-pascal] TObjectList works; TFPObjectList gives memory leaks
Marco van de Voort
marcov at stack.nl
Sun Aug 1 14:26:17 CEST 2010
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().
It would be interesting if you could come up with a little program that
really shows the problem (e.g. a small program that changes behaviour if you
just prefix "fp").
More information about the fpc-pascal
mailing list