【关于FastMM4的问题】File not found: 'FastMM4.dcu',该如何解决?

hhkun0120 2011-09-02 12:37:07

比如下面一段简单的代码

program Project3;

uses
FastMM4,
Forms,
Unit2 in 'Unit2.pas' {Form2};

{$R *.res}

begin
Application.Initialize;
Application.MainFormOnTaskbar := True;
Application.CreateForm(TForm2, Form2);
Application.Run;
end.


即使这么简单的代码依然报错
[DCC Error] Project3.dpr(6): F1026 File not found: 'FastMM4.dcu'


不知道为什么,请各位指教。在公司的机器上可以,在自己的笔记本上却不行。
...全文
503 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
OO_is_just_P 2011-09-09
  • 打赏
  • 举报
回复
[Quote=引用 8 楼 xinghun61 的回复:]

FastMM是检查内存泄露用的,注释掉也不影响程序编译,如下:
Delphi(Pascal) code

uses
// FastMM4, //注释掉这里
Forms,
Unit2 in 'Unit2.pas' {Form2};



当然,按楼上的方法添加查找路径或下载FastMM的源码装上也可以。
[/Quote]
FastMM不光是检测内存泄露的,他可以完全替代Delphi自己的内存管理器(前提是工程文件uses的第一个),效率比原始的高出好多。虽然在BDS 2006 以后Delphi就使用了FastMM,但我还是喜欢用最新稳定版。注释掉就实用默认的delphi内存管理器,没任何影响,不要求效率的基本感觉不出来。
hhkun0120 2011-09-08
  • 打赏
  • 举报
回复
发现fastMM的位置写错了,无比尴尬
但是引用了二楼的方法
hhkun0120 2011-09-08
  • 打赏
  • 举报
回复
晕,fastMM4的位置写错了,无比尴尬
但是还是按照二楼的办法引用了下载的fastMM4
xinghun61 2011-09-02
  • 打赏
  • 举报
回复
FastMM是检查内存泄露用的,注释掉也不影响程序编译,如下:

uses
// FastMM4, //注释掉这里
Forms,
Unit2 in 'Unit2.pas' {Form2};


当然,按楼上的方法添加查找路径或下载FastMM的源码装上也可以。
vokeyliu 2011-09-02
  • 打赏
  • 举报
回复
Tools->Environment Options 的Library页中的Library path
OO_is_just_P 2011-09-02
  • 打赏
  • 举报
回复
tools->options->library->library path添加FastMM.pas所在路径即可
hhkun0120 2011-09-02
  • 打赏
  • 举报
回复
library在哪?
[Quote=引用 1 楼 varick_zhong 的回复:]
在library中把这个FastMM4.dcu 的路径添加进来,再编译看看
[/Quote]
varick_zhong 2011-09-02
  • 打赏
  • 举报
回复
在library中把这个FastMM4.dcu 的路径添加进来,再编译看看
weixiaohua 2011-09-02
  • 打赏
  • 举报
回复
FastMM4不是官方的内存管理器.所以需要先下载然后才能用.

http://fastmm.sourceforge.net
hhkun0120 2011-09-02
  • 打赏
  • 举报
回复

$(BDS)\lib;
$(BDSUSERDIR)\Imports;
$(BDS)\Imports;
$(BDS)\Lib\Indy10;
$(BDSCOMMONDIR)\Dcp;
$(GRS)\Lib;$(GRS)\Lib\D10;
$(GRS)\Lib\Res;
$(GRS)\GrandSoft\Extended\Source;
$(GRS)\GrandSoft\GrandCommon\Source;
$(GRS)\GrandSoft\GrandCommon\Source\LZMA;
$(GRS)\GrandSoft\GrandDog\Common;
$(GRS)\GrandSoft\GrandReport\Report30\Common;
$(GRS)\GrandSoft\GrandReport\Report40\Common;
$(GRS)\GrandSoft\GrandSmartPlatform\Common;
$(GRS)\GrandSoft\GrandSmartPlatform\Common_Inner;
$(GRS)\GrandSoft\GrandSmartPlatform\Explorer;
$(GRS)\GrandSoft\GrandSmartPlatform\Report;
$(GRS)\GrandSoft\GrandWorkflow\Source;
$(GRS)\GrandSoft\VectorDrawEditor\Source\Units;
$(GRS)\External\ASProtect;
$(GRS)\External\DUnit\Source;
$(GRS)\External\Jcl\source\common;
$(GRS)\External\Jcl\source\windows;
$(GRS)\External\Synapse\Source;
$(GRS)\External\TeeChart\Source;
C:\Program Files\Raize\RC4\Lib\BDS2006;

5,388

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧