LCL: added check for issue #30661

git-svn-id: trunk@53060 -
This commit is contained in:
mattias 2016-09-30 06:19:21 +00:00
parent 1377f905ad
commit e01bc2c59e

View File

@ -189,6 +189,13 @@ begin
inc(FReferenceCount);
if FReferenceCount = 1 then
Cache.ItemUsed(Self);
{$IFDEF VerboseResCache}
if FReferenceCount = 10 then
begin
WarnReferenceHigh;
DumpStack;
end;
{$ENDIF}
if (FReferenceCount = 1000) or (FReferenceCount = 10000) then
WarnReferenceHigh;
end;