처음 Indy를 사용할때 그래서 한참 소스를 뒤저본적이 있는데.. 일부러 만들어 놓은거더군요.. IdStack.pas에 보면
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
{$IFDEF IDFREEONFINAL}
Sys.FreeAndNil(GStackCriticalSection);
{$ENDIF}
|