How can I enable the memory leak tracking with FastMM in DUnit?

主宰稳场 提交于 2019-12-06 18:40:44

问题


In the GUI test runner, the menu items for memory leak checking are inactive (grayed out). Is there a special switch I have not found yet to activate them?

Using DUnit 9.4 (from Delphi 2009 or from the sourceforge Subversion repository) and FastMM4.92


回答1:


You have to build your DUnit GUI-testrunner with the FASTMM and ManualLeakReportingControl directive. This will enable the memoryleak items (Take a look in GUITestRunner.pas).



来源:https://stackoverflow.com/questions/685904/how-can-i-enable-the-memory-leak-tracking-with-fastmm-in-dunit

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