[fpc-pascal]Memory Usage

James Mills prologic at prologitech.com
Mon May 12 11:11:28 CEST 2003

On Mon, May 12, 2003 at 10:58:03AM +0200, Jonas Maebe wrote:
> On maandag, mei 12, 2003, at 10:57 Europe/Brussels, James Mills wrote:
> >>Try compiling with -ghl to check for memory leaks.
> >
> >I have. I do not fully understand the output though when the program
> >exits. Still reading the documentation on the heaprtl
> It gives you a list of memory blocks that you allocated but never 
> released, along with a backtrace that shows where those blocks were 
> allocated.

But never released. So if the program released all memory then it
wouldn't have any backtrace lines in the output log ?

Another question (I'm not an expert on linux :P), it outputs after the
program exits. If mine goes into the background,
ie: ./pircsrv > log.out &
Would this be correct to get the ghl output ?
./pircsrv > log.out & 2>mem.txt

Also I'd like to see an example of a proper Makefile for FPC written
programs, as I think most of my units are not compiled with debugging

thank you :)

> Jonas
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal

More information about the fpc-pascal mailing list