Creating a FASTMM report WITHOUT DISABLING

I would like my Delphi project to generate a FASTMM memory leak report during program execution, if possible, and add to this shutdown report without seeing this dialog every time I close the program.

If it is impossible to create an FMM report and edit it N times at runtime, I would like to at least get rid of the annoying dialog, since I already have a report with much more detailed information than the dialog shows.

+4
source share
1 answer

This can be done by setting SuppressMessageBoxes to False . This feature is only available if you are using the full version of FastMM as opposed to the cut version bundled with Delphi.

You cannot call CheckBlocksOnShutdown because it is not declared in the device interface section. You can change the source code for FastMM4.pas to make it available. However, calling it while your program is running will most likely not bring anything useful. It just spits out a report containing all the memory blocks that are currently allocated. Which is very different from the list of blocks that were skipped.

+6
source

Source: https://habr.com/ru/post/1437135/


All Articles