procedure RemoveMemoryAllocCount;
Takes the counting manager out: the memory manager it stood in front of serves every call, uncounted.
Result: stored in self (calling object)
Remarks:
Raises EInvalidOpException if the counting manager is not installed. InstallMemoryAllocCount puts it back. The unit's finalization takes it out if it is still installed.
Examples
Once removed, nothing is counted.
uses Substr;
procedure Example;
var c: Char;
t: string;
begin
c := 'x';
InstallMemoryAllocCount;
RemoveMemoryAllocCount;
MarkMemoryAllocCount;
t := c;
Assert(CheckMemoryAllocCount = 0);
Assert(t = 'x');
end;