LCL: Improve a debug msg when destroying a component with LCLRefCount>0.

git-svn-id: trunk@51948 -
This commit is contained in:
juha 2016-03-15 11:22:21 +00:00
parent 0c321120f7
commit c44a316e99

View File

@ -122,7 +122,7 @@ destructor TLCLComponent.Destroy;
begin
{$IFNDEF DisableChecks}
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}
{$IFDEF DebugLCLComponents}
//DebugLn('TLCLComponent.Destroy ',DbgSName(Self));