如何在 FastMM4 中启用完全调试模式? [英] How to enable full debug mode in FastMM4?

查看:31
本文介绍了如何在 FastMM4 中启用完全调试模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道如何使用 FastMM.我已经从 SourceForge 下载它并将 FastMM4Messages.pas 和 FastMM4.pas 放在我的 dpr 文件的顶部.

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;

并收到这条消息

如何启用这些 FullDebugMode 和 LogMemoryLeakDetailsToFile 开关?

How do I enable these FullDebugMode and LogMemoryLeakDetailsToFile switches?

推荐答案

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.

这篇关于如何在 FastMM4 中启用完全调试模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆