[Lazarus] Finding memory leaks

Michael Van Canneyt michael at freepascal.org
Mon Oct 26 20:33:14 CET 2015



On Mon, 26 Oct 2015, Aradeonas wrote:

> Thanks.
> cmem will clean memory much better.

It uses a different strategy. It is not necessarily the better.
It depends what you care about.

> App start with 2mb that is less than 3mb without cmem and goes up to
> 18mb that again is less than 25mb in previous example and after
> destroying all the items it will decrease to 3mb that is much better
> result although there is 1mb extra memory usage
> Michael as it seems you write it can I ask why this is not the default
> memory manager?

Because it depends on the C runtime library.

Also, it depends on what you need. 
In some cases the FPC memory manager performs better.

Michael.




More information about the Lazarus mailing list