Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Nov : Re: Verison of Indy 10 without Memory Leak?

www.cryer.info
Managed Newsgroup Archive

Re: Verison of Indy 10 without Memory Leak?

Subject:Re: Verison of Indy 10 without Memory Leak?
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Tue, 6 Nov 2007 15:07:53

"Steve Maughan" <GoogleMe@www.com> wrote in message
news:4730cfea$1@newsgroups.borland.com...

> I've been told that this is intentional (not sure why it necessary) but
> there is a version of Indy that doesn't have this leak.
> Is this true?

No.  However, you can recompile Indy with IDFREEONFINAL defined
(IdCompilerDefines.inc would be a good place to put it) in order to remove
the leaks.  If you upgrade to a newer Indy 10 snapshot (what ships with
D2007 is *not* the latest), then it calls SysRegisterExpectedMemoryLeak()
when IDFREEONFINAL is not defined, so the leaks do not appear in FastMM's
leak report when enabled.


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive