mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 01:28:19 +02:00
parent
1377f905ad
commit
e01bc2c59e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user