Re: FastMM4



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
.