Delphi7 的FastMM配置步骤


1>  FastMM是开源项目, 从 http://sourceforge.net/projects/fastmm 下载最新版
2>  文件夹Replacement BorlndMM DLL/Precompiled/for Delphi IDE/Performance/BorlndMM.dll,替换掉Delphi/Bin下的相应文件就可以完成对IDE的提速
3> Enviroment->Library->Directories-> Library Path 添加FassMM路径,我放在Delphi安装目录下,直接设置为$(DELPHI)/FastMM
4> 在你的项目文件中,Project->View Source打开后,uses 后第一个添加FastMM4单元
5> 编译运行你的程序,如果有Memory leak,在关闭程序时会有一个提示对话框.

对话框也是可以关闭的
打开FastMM4Options.inc文件。在文件的末尾添加如下代码:
{$define Release}
{$ifdef Release}
  {Specify the options you use for release versions below}
  {$undef FullDebugMode}
  {$undef CheckHeapForCorruption}
  {$define ASMVersion}
  {$undef EnableMemoryLeakReporting}
  {$undef UseOutputDebugString}
  {$undef LogErrorsToFile}
  {$undef LogMemoryLeakDetailToFile}
{$else}
  {Specify the options you use for debugging below}
  {$define FullDebugMode}
  {$define EnableMemoryLeakReporting}
{$define UseOutputDebugString}{$endif}

重新打开把上面第一行条件编译定义选项{$define Release} 注释掉就可以了
如 //{$define Release} 即可.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

我不是代码教父

我的创作动力离不开你的真诚激励

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值