Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Feb : Re: Problems wirth Define condition "Release"
| Subject: | Re: Problems wirth Define condition "Release" |
| Posted by: | "Alexe Bilchenko" (alexei.bilchen..@impet.com) |
| Date: | Wed, 27 Feb 2008 12:40:27 |
I resolve my problem, but I have one my comment:
In my opinion I can use new Delphi 2007 and FastMM simultaneous, in this
case I can use VCL10ORABOVE and USEFASTMM4,
And code in IdGlobal need replace to:
{$IFDEF REGISTER_EXPECTED_MEMORY_LEAK}
function IndyRegisterExpectedMemoryLeak(AAddress: Pointer): Boolean;
{$IFDEF USEINLINE}inline;{$ENDIF}
begin
{$IFDEF VCL10ORABOVE}
{$IFDEF USEFASTMM4}
Result := FastMM4.RegisterExpectedMemoryLeak(AAddress);
{$ELSE}
Result := System.RegisterExpectedMemoryLeak(AAddress);
{$ELSE}
{$IFDEF USEFASTMM4}
Result := FastMM4.RegisterExpectedMemoryLeak(AAddress);
{$ELSE}
Result := False;
{$ENDIF}
{$ENDIF}
end;
{$ENDIF}
Replace to
"Alexe Bilchenko" <alexei.bilchenko@impet.com> wrote in message
news:47c52a5c$1@newsgroups.borland.com...
> Additional information: problem when I add to project FastMM4 (I use Fast
> Memory Manager 4.78)
> Continue learn problem
>
> "Alexe Bilchenko" <alexei.bilchenko@impet.com> wrote in message
> news:47c448ad@newsgroups.borland.com...
>> Hello. In first thank you for resolve problem "TIdFTP: Can not resume
>> file more 2 GB"
>>
>> But in this moment i have other problem, maybe anybody have experience in
>> my error...
>> I can not use my project, when it compiled with Release condition...
>> Project compiled without error and warning, but crashes on call @InitExe
>> with error:
>> ---------------------------
>> Debugger Exception Notification
>> ---------------------------
>> Project Test.exe raised exception class EStackOverflow with message
>> 'Stack overflow'.
>> ---------------------------
>> Break Continue Help
>> ---------------------------
>>
>> I can see only this in Debug CPU window ... :
>> !!!begin!!!
>> 007B2301 8BEC mov ebp,esp
>> 007B2303 83C4EC add esp,-$14
>> 007B2306 53 push ebx
>> 007B2307 56 push esi
>> 007B2308 57 push edi
>> 007B2309 33C0 xor eax,eax
>> 007B2303 83C4EC add esp,-$14
>> 007B2306 53 push ebx
>> 007B2307 56 push esi
>> 007B2308 57 push edi
>> 007B2309 33C0 xor eax,eax
>> 007B230B 8945EC mov [ebp-$14],eax
>> 007B230E B8B0CF7A00 mov eax,$007acfb0
>> !!! Crash !!! 007B2313 E85457C5FF call @InitExe
>> 007B2318 33C0 xor eax,eax
>>
>>
>>
>> P.S.
>> I work with Indy10 (compile with Fulld12.bat (same my adjust copy as
>> Fulld10.bat) ) and Delphi2007
>> Without Release condition all work perfectly....
none