Re: FastMM4
- From: "Leonel" <togniolli.@.gmail.com>
- Date: 29 Jun 2005 10:11:32 -0700
Alan Garny wrote:
> Well, I just checked my project and all the 3rd party components that
> I use and there is only 3rd party tool that I use that create an
> instance of TCriticalSection. It's MemCheck. This being said, it does
> release it, so... the problem doesn't lie with my project or any of
> the 3rd party components that I use. Delphi?...
In my unresting curiosity I just found out what causes it in my
project. I built with debug DCUs with a breakpoint on
TCriticalSection's constructor. That allowed me to find the allocation
very fast. It's from Indy:
(IdComponent.pas)
initialization
GStackCriticalSection := TCriticalSection.Create;
finalization
// Dont Free. If shutdown is from another Init section, it can cause
GPF when stack
// tries to access it. App will kill it off anyways, so just let it
leak
// FreeAndNil(GStackCriticalSection);
end.
--
Leonel
.
- References:
- FastMM4
- From: Alan Garny
- Re: FastMM4
- From: Leonel
- Re: FastMM4
- From: Alan Garny
- FastMM4
- Prev by Date: Re: Replacement MM for the Delphi IDE
- Next by Date: Re: Survey: Which Delphi do you use?
- Previous by thread: Re: FastMM4
- Next by thread: Re: FastMM4
- Index(es):