delphi - Memory leaks in Lazarus, How to Debug them using Heaptrcon? -


in delphi xe used reportmemoryleaksonshutdown detect leaks when exiting applications, projects rather small , finding leaks not difficult.

in lazarus there no such option have found out option called heaptrcon, more information on page: http://wiki.lazarus.freepascal.org/profiling

in project options > linking have set (-gh) flag, fears of leaks have become reality. post code because there lot of different classes , units have no idea begin in fixing these leaks, project far larger other have worked on.

this screenshot of of leaks:

enter image description here

my debugging skills practically zero, far have looked see every object or class have created, , checked see if has been freed. because working lot of tlists , pointers/objects etc leak coming anywhere guess.

is there clues or tips of begin looking? looking @ call stack each block size 16, , there 6 of them, mean there 6 objects not been destroyed correctly?

i @ loss, begin?

thanks in advance.

the information need stack traces allocations associated each leaked object. present in screenshot, presented addresses rather function names. enable debug info , names presented you. can trace problems in same way fastmm in delphi.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -