delphi7下开发的小工具到XE2下不能编译了,提供源码,帮忙看一下。没有用三方控件。
就两处错误:
[DCC Error] FastMM4Messages.pas(61): E2072 Number of elements (8) differs from declaration (11)
[DCC Fatal Error] FastMM4.pas(1118): F2063 Could not compile used unit 'FastMM4Messages.pas'是个类似仿照查询分析器的工具,需要源码加QQ:435604266
帮忙修改好后,不胜感激!
就两处错误:
[DCC Error] FastMM4Messages.pas(61): E2072 Number of elements (8) differs from declaration (11)
[DCC Fatal Error] FastMM4.pas(1118): F2063 Could not compile used unit 'FastMM4Messages.pas'是个类似仿照查询分析器的工具,需要源码加QQ:435604266
帮忙修改好后,不胜感激!
解决方案 »
- delphi 导到Excel,如何控制回车
- AK47,谢谢你的帮忙,我现在实现承诺
- [送分问题]MessageDlg 如何使用?回复就有分。
- 为什么我的TListbox控件少了很多属性??
- 谁有Emage的源代码???
- 哪里有介绍SQL Server、Oracle、SyBase、MySQL、IBM DB2、Informix这些数据库的优缺点的文章?
- 存储过程的求和结果为空值时(select结果为空),则程序运行出错,提示说类型转换错误,不知道怎样处理,请高手指点
- 发现一本好书
- 如何了解delphi的开发环境?
- Help!!关于使用SavetoFile!!
- index is out of date如何处理?????
- Delphi MDI中打开子窗体
查下61行前后的语句,与说明的地方是否相符。
fastmm 不能去除,取出后查询内容是乱码了.
'SafeCallException',
'AfterConstruction',
'BeforeDestruction',
'Dispatch',
'DefaultHandler',
'NewInstance',
'FreeInstance',
'Destroy');
提示:
[DCC Error] FastMM4Messages.pas(61): E2072 Number of elements (8) differs from declaration (11)
{$ifdef EnableMemoryLeakReporting} {The layout of an expected leak. All fields may not be specified, in which
case it may be harder to determine which leaks are expected and which are
not.}
PExpectedMemoryLeak = ^TExpectedMemoryLeak;
PPExpectedMemoryLeak = ^PExpectedMemoryLeak;
TExpectedMemoryLeak = packed record
{Linked list pointers}
PreviousLeak, NextLeak: PExpectedMemoryLeak;
{Information about the expected leak}
LeakAddress: Pointer;
LeakedClass: TClass;
LeakSize: Integer;
LeakCount: Integer;
end;//这个地方提示错误 TExpectedMemoryLeaks = packed record
{The number of entries used in the expected leaks buffer}
EntriesUsed: Integer;
{Freed entries}
FirstFreeSlot: PExpectedMemoryLeak;
{Entries with the address specified}
FirstEntryByAddress: PExpectedMemoryLeak;
{Entries with no address specified, but with the class specified}
FirstEntryByClass: PExpectedMemoryLeak;
{Entries with only size specified}
FirstEntryBySizeOnly: PExpectedMemoryLeak;
{The expected leaks buffer}
ExpectedLeaks: packed array[0..(ExpectedMemoryLeaksListSize - 20) div SizeOf(TExpectedMemoryLeak) - 1] of TExpectedMemoryLeak;
end;
PExpectedMemoryLeaks = ^TExpectedMemoryLeaks;{$endif}上面这段提示
[DCC Fatal Error] FastMM4.pas(1118): F2063 Could not compile used unit 'FastMM4Messages.pas'
所以即使编译成功,也会给出这样的提示:
FastMM4 cannot install since memory has already been allocated through the default memory manager.
FastMM4.pas MUST be the first unit in your project's .dpr file, otherwise memory may be allocated
through the default memory manager before FastMM4 gains control. If you are using an exception trapper like MadExcept (or any tool that modifies the unit initialization order),
go into its configuration page and ensure that the FastMM4.pas unit is initialized before any other unit.如果你需要使用其中的某些程序,可以单独提取出来。这一有可以用XE2成功编译的版本:
http://fastmm.svn.sourceforge.net/viewvc/fastmm/FastMM4Options.inc?revision=36&view=up&pathrev=36
我qq435604266,请大侠加。
分不够,我再加。谢谢。
估计是xe2的对象内存分布模式有所变化array[1 + vmtParent div 4 .. -1]原来是-8到-1
xe2下变成了-11到-1
这个原因?--------------------
工业控件 www.beaugauge.net
[DCC Fatal Error] FastMM4.pas(1118): F2063 Could not compile used unit 'FastMM4Messages.pas'61行代码中与前面声明的不符,FASTMM4未安装或者路径不对吧,注释掉
FastMM4在Xe2下是没有问题的,一直在用,但是为什么出错就不知道了。