Browse Source

* print context in Release in debug mode

git-svn-id: trunk@48083 -
(cherry picked from commit b31305810c4b859baa6238de5168fae0c174b3c5)
michael 4 years ago
parent
commit
f97ef4ad41
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/fcl-passrc/src/pastree.pp

+ 2 - 2
packages/fcl-passrc/src/pastree.pp

@@ -3100,7 +3100,7 @@ begin
   CN:=CN+' '+IntToStr(FRefCount);
   CN:=CN+' '+IntToStr(FRefCount);
   //If Assigned(Parent) then
   //If Assigned(Parent) then
   //  CN:=CN+' ('+Parent.ClassName+')';
   //  CN:=CN+' ('+Parent.ClassName+')';
-  Writeln('TPasElement.Release : ',Cn);
+  Writeln('TPasElement.Release : ',Cn,' at ',aId);
   {AllowWriteln-}
   {AllowWriteln-}
   {$endif}
   {$endif}
   {$IFDEF CheckPasTreeRefCount}
   {$IFDEF CheckPasTreeRefCount}
@@ -3136,7 +3136,7 @@ begin
     Dec(FGlobalRefCount);
     Dec(FGlobalRefCount);
     {$endif}
     {$endif}
     end;
     end;
-{$if defined(debugrefcount) or defined(VerbosePasTreeMem)}  Writeln('TPasElement.Released : ',Cn); {$endif}
+{$if defined(debugrefcount) or defined(VerbosePasTreeMem)}  Writeln('TPasElement.Released : ',Cn,' at ',aID); {$endif}
 end;
 end;
 
 
 procedure TPasElement.ForEachCall(const aMethodCall: TOnForEachPasElement;
 procedure TPasElement.ForEachCall(const aMethodCall: TOnForEachPasElement;