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

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

问题描述

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



我现在调用此过程来泄漏一些内存:

 程序testMemoryFastMM; 
var
str:TStringList;
begin
str:= TStringList.Create;
str.add('MemChk');
str.SaveToFile('C:\leeMemChk.txt');
结束

并获取此消息



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


Fastmat4自带一个包含文件(FastMM4Options.inc)。此文件包含所有FastMM4的选项,其中一些注释掉。取消注释激活它们,然后通过在您的dpr文件中放置 {$ INCLUDE FastMM4Options.inc} 将inc文件包含在项目中。


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?

解决方案

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天全站免登陆