如何在DUnit中启用FastMM的内存泄漏跟踪? [英] How can I enable the memory leak tracking with FastMM in DUnit?
本文介绍了如何在DUnit中启用FastMM的内存泄漏跟踪?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在GUI测试运行器中,内存泄漏检查的菜单项为
无效(灰显)。有没有一个特殊的开关我还没有找到
激活他们?
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?
使用DUnit 9.4(从Delphi 2009或源代码Subversion版本库)和
FastMM4.92
Using DUnit 9.4 (from Delphi 2009 or from the sourceforge Subversion repository) and FastMM4.92
推荐答案
您必须使用FASTMM和ManualLeakReportingControl指令构建DUnit GUI-testrunner。这将启用记忆体项目(请查看GUITestRunner.pas)。
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).
这篇关于如何在DUnit中启用FastMM的内存泄漏跟踪?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文