![]() |
Re: Memory Leak bei INDY 10 in der SMTP Komponente?
Hallo,
Zitat:
Gruß xaromz |
Re: Memory Leak bei INDY 10 in der SMTP Komponente?
Zitat:
Gruss EL |
Re: Memory Leak bei INDY 10 in der SMTP Komponente?
Zitat:
|
Re: Memory Leak bei INDY 10 in der SMTP Komponente?
oder MemCheck, welches dir bei eingeschalteten Debuginfos sogar die stelle Anzeigt, bei der das Leak entstanden ist, mitsamt dem kompletten Aufruf-Stack.
mfG Markus |
Re: Memory Leak bei INDY 10 in der SMTP Komponente?
Zitat:
|
Re: Memory Leak bei INDY 10 in der SMTP Komponente?
Hallo,
Zitat:
Gruß xaromz |
Re: Memory Leak bei INDY 10 in der SMTP Komponente?
Zitat:
Gruss EL |
Re: Memory Leak bei INDY 10 in der SMTP Komponente?
Datei IdComponent.pas
Delphi-Quellcode:
Das die beim schreiben des Kommentars nicht gleich darauf gekommen sind :shock: Aber der Indy-Code ist sowieso etwas undurchsichtig (von der Formatierung mal abgesehen)
destructor TIdComponent.Destroy;
begin inherited Destroy; // After inherited - do at last possible moment + if Assigned(GStackCriticalSection) then GStackCriticalSection.Acquire; try Dec(GInstanceCount); if GInstanceCount = 0 then begin // This CS will guarantee that during the FreeAndNil nobody will try to use // or construct GStack FreeAndNil(GStack); end; finally + if Assigned(GStackCriticalSection) then GStackCriticalSection.Release; end; end; ... 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); + FreeAndNil(GStackCriticalSection); end. |
Re: Memory Leak bei INDY 10 in der SMTP Komponente?
Ach ja und dann:
dcc32.exe -U..\..\lib -R..\..\lib -M -$D- IdComponent.pas move IdComponent.dcu ..\..\lib dcc32.exe -U..\..\lib -R..\..\lib -M -$D+ IdComponent.pas move IdComponent.dcu ..\..\lib\debug Das Indy-Package muss, wenn man es nutzt, auch neu gebaut werden. |
Re: Memory Leak bei INDY 10 in der SMTP Komponente?
Zitat:
Gruss EL |
Alle Zeitangaben in WEZ +1. Es ist jetzt 09:31 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz