How do I turn on/off FastMM memory leak reporting under Delphi XE?

烂漫一生 提交于 2019-11-29 11:28:26

You do it by assigning to the Boolean variable System.ReportMemoryLeaksOnShutdown.

This will allow you to control the single most important setting, the reporting of memory leaks. If you want more fine grained control of the FastMM settings then include FastMM in your project just as you did in Delphi 7.

If you download the full version of FastMM from http://sourceforge.net/projects/fastmm/

You have the option to disable a single memory leak and still keep the reports on other leaks that you do want to know about.

There's also a forum for FastMM that you might find helpful: http://sourceforge.net/projects/fastmm/forums

If you install FastMM, a uses clause for it will be automatically added to the relevant files. You can see this if you look at the .dpr file. If you remove the clause, FastMM will even add it back on recompile :-).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!