The IDEMimic.Dpr project displays the number of allocated bytes of heap on its caption bar at all times. This mimics the IDE's undocumented -HM command-line switch to a certain extent. Also, if the application causes a heap integrity problem, the caption also reflects this by displaying the heap error code. This mimics the IDE's undocumented -HV switch. The heap error codes can be found in Delphi's SOURCE\RTL\SYS\GETMEM.INC.