mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 17:59:22 +02:00
LCL: Improve a debug msg when destroying a component with LCLRefCount>0.
git-svn-id: trunk@51948 -
This commit is contained in:
parent
0c321120f7
commit
c44a316e99
@ -122,7 +122,7 @@ destructor TLCLComponent.Destroy;
|
|||||||
begin
|
begin
|
||||||
{$IFNDEF DisableChecks}
|
{$IFNDEF DisableChecks}
|
||||||
if FLCLRefCount>0 then
|
if FLCLRefCount>0 then
|
||||||
DebugLn(['WARNING: TLCLComponent.Destroy with LCLRefCount>0. Hint: Maybe the component is processing an event?']);
|
DebugLn(['WARNING: ' + ClassName + '.Destroy with LCLRefCount>0. Hint: Maybe the component is processing an event?']);
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
{$IFDEF DebugLCLComponents}
|
{$IFDEF DebugLCLComponents}
|
||||||
//DebugLn('TLCLComponent.Destroy ',DbgSName(Self));
|
//DebugLn('TLCLComponent.Destroy ',DbgSName(Self));
|
||||||
|
Loading…
Reference in New Issue
Block a user