[fpc-pascal] memory leak detection using FPC

Michael Van Canneyt michael at freepascal.org
Tue Sep 19 09:10:17 CEST 2006



On Tue, 19 Sep 2006, Graeme Geldenhuys wrote:

> Hi,
>
> How do you do memory leak detection using FPC?  I know about the -gh
> parameter, but don't know how to use it, or with what other tools.  I
> develop under Linux on x86.

Just add -gh to the compiler command-line.

Run your project from a console, so you can see standard output.

When the program is finished, it will give you a detailed list of memory leaks.

Michael.



More information about the fpc-pascal mailing list