這與IndyRegisterExpectedMemoryLeak()
函數和FastMM4有關。使用FastMM4和Indy 10
在System
文件夾IdCompilerDefines.inc
,我定義USE_FASTMM4
,是IdGlobal.pas
編譯器錯誤如下:
[Error]IdGlobal.pas[2203] Declaration of 'GetBytes' defers from declaration in interface 'IIdTextEncoding'
[Error]IdGlobal.pas[2203] Declaration of 'GetCharCount' defers from declaration in interface 'IIdTextEncoding'
[Error]IdGlobal.pas[2203] Declaration of 'GetChars' defers from declaration in interface 'IIdTextEncoding'
等。
如果我不定義USE_FASTMM4
,然後它告訴我,FastMM4未在此行中定義:
Result := FastMM4.RegisterExpectedMemoryLeak(AAddress);
您可能需要對您正在使用的Indy版本非常具體。你是否從回購中獲得最新版本? –