如何访问FastMM4的RegisterExpectedMemoryLeak? [英] How do I get access to FastMM4's RegisterExpectedMemoryLeak?

查看:107
本文介绍了如何访问FastMM4的RegisterExpectedMemoryLeak?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Delphi的fastMM内存管理器,尝试使用完整调试模式时失败。

I'm using Delphi's fastMM memory manager and I fail when I try to use the full debug mode.

编译时出现以下错误:

FastMM\FastMM4.pas(6872) Error: Undeclared identifier: 'RegisterExpectedMemoryLeak'
FastMM\FastMM4.pas(6948) Error: Undeclared identifier: 'UnregisterExpectedMemoryLeak'
FastMM\FastMM4.pas(9269)
import_test.dpr(24) Fatal: Could not compile used unit 'FastMM\FastMM4.pas'



< p.inc文件告诉您加载完整的调试dll。我已经在所有地方复制了FastMM_FullDebugMode.dll文件。看来我应该在我的项目中包括一些东西。

The .inc file tells to load the full debug dll. I've already copied the FastMM_FullDebugMode.dll file everywhere. It looks like I should have included something in my project.

我可能会丢失一些非常明显的东西。

I'm probably missing something really obvious.

Delphi版本为7。

The Delphi version is 7.

推荐答案

打开<包含文件 FastMM4Options.inc 中的code> EnableMemoryLeakReporting 指令,方法是将其更改为:

Turn on the EnableMemoryLeakReporting directive in the include file FastMM4Options.inc by changing it from:

{.$define EnableMemoryLeakReporting}

到:

{$define EnableMemoryLeakReporting}

也请阅读该文件中的注释并了解各种选项,并根据需要将其打开/关闭。

Also read the comments in that file and understand the various options, turn them on/off as needed.

这篇关于如何访问FastMM4的RegisterExpectedMemoryLeak?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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