Mark Morgan Lloyd wrote:
Is there a simple function or variable which shows the amount of space currently allocated on the heap? I can't find the Lazarus/FPC equivalent of Delphi's AllocMemSize, and I'm looking for a simple metric I can place in a hint to warn of creeping leaks.
Look for GetHeapStatus, it's even compatible with Delphi (if that's necessary).
Hint: compile application with -gh, that will use heap tracer and tell you at end of application where your leaked blocks are coming from.
Micha -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
