mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 08:29:06 +02:00
LCL: added DebugTLCLComponentDestroy
git-svn-id: trunk@54853 -
This commit is contained in:
parent
b49b4efff4
commit
c824f9135d
@ -121,8 +121,12 @@ end;
|
||||
destructor TLCLComponent.Destroy;
|
||||
begin
|
||||
{$IFNDEF DisableChecks}
|
||||
if FLCLRefCount>0 then
|
||||
if FLCLRefCount>0 then begin
|
||||
DebugLn(['WARNING: ' + ClassName + '.Destroy with LCLRefCount>0. Hint: Maybe the component is processing an event?']);
|
||||
{$IFDEF DebugTLCLComponentDestroy}
|
||||
DumpStack;
|
||||
{$ENDIF}
|
||||
end;
|
||||
{$ENDIF}
|
||||
{$IFDEF DebugLCLComponents}
|
||||
//DebugLn('TLCLComponent.Destroy ',DbgSName(Self));
|
||||
|
Loading…
Reference in New Issue
Block a user