如何在 FastMM4 中启用完全调试模式?

发布于 2024-12-22 19:26:21 字数 529 浏览 1 评论 0原文

我不知道如何使用 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
enter image description here

How do I enable these FullDebugMode and LogMemoryLeakDetailsToFile switches?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

故事未完 2024-12-29 19:26:21

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文