如何在 FastMM4 中启用完全调试模式?
我不知道如何使用 FastMM。我已经从 SourceForge 下载了它,并将 FastMM4Messages.pas 和 FastMM4.pas 放在我的 dpr 文件的顶部。
我现在调用此过程来泄漏一些内存:
procedure testMemoryFastMM;
var
str : TStringList;
begin
str:=TStringList.Create;
str.add('MemChk');
str.SaveToFile('C:\leeMemChk.txt');
end;
并收到此消息
如何启用这些 FullDebugMode 和 LogMemoryLeakDetailsToFile 开关?
I cannot figure out how to use FastMM. I have downloaded it from SourceForge and placed FastMM4Messages.pas and FastMM4.pas at the top of my dpr file.
I now call this procedure to leak some memory:
procedure testMemoryFastMM;
var
str : TStringList;
begin
str:=TStringList.Create;
str.add('MemChk');
str.SaveToFile('C:\leeMemChk.txt');
end;
and get this message
How do I enable these FullDebugMode and LogMemoryLeakDetailsToFile switches?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
FastMM4 附带一个包含文件 (FastMM4Options.inc)。该文件包含 FastMM4 的所有选项,其中一些选项已被注释掉。取消注释以激活它们,然后通过将
{$INCLUDE FastMM4Options.inc}
放置在 dpr 文件中,将 inc 文件包含在您的项目中。FastMM4 comes with an include file (FastMM4Options.inc). This file contains all of FastMM4's options, some of which are commented out. Uncomment to activate them and then include the inc file in your project by placing
{$INCLUDE FastMM4Options.inc}
in your dpr file.