I am trying to hunt down memory leaks in the GUI which is written in Delphi (not a simple task, seeing as the code is enormous- tens of thousands of lines of code). I've made a file parser which analyzes the report generated by FASTMM
, and creates TMemoryLeak
instances and stores them in a neat VirtualNodeTree
.
The problem, however, is that generating such a report and then parsing through it, takes a lot of time. There is a FMM method called CheckBlocksOnShutDown
, which I was able to isolate and call just by a click of a button, but, again, it creates a whole new report, which I have to traverse, and store the whole report in my NodeTree. I would like to achieve a near-real-time view of the new memory leaks being created by repeatedly clicking the
I would like to tweak FASTMM code to make it create memory leak instances "on the go", without writing anything to a file. Is this feasible? (simialar question)