Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2003-02

Profiling and memory leaks

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Iván Montes

Hi,

Do you know of any tools I can use to check for memory leaks on my code?

I'm using FPC 1.1 snapshots under Win2k.

cheers, Ivan

Reply by email

Marco van de Voort
to Iván Montes
Do you know of any tools I can use to check for memory leaks on my code? I'm using FPC 1.1 snapshots under Win2k.

Compile using -gh, and check the output after termination. It will give the unitname and line where the memory was allocated.

There are only a few gotcha's (sometimes memory allocated in the RTL startup is not released when the memorychecker terminates. So if you have mem leaks at the "start" of the program, ignore them)

Reply by email