>Does anyone know the declaration and usage of function assigned
>to HeapCheck variable ?
HeapCheck exists only in Delphi 1. It it normally nil, but you can set
it point to a parameterless procedure. Delphi calls the HeapCheck
procedure before allocating or freeing memory. You can use this
procedure to verify the integrity of the heap, or whatever else you
want to do.
Secrets of Delphi 2 describes HeapCheck, the format of the Delphi 1
heap, and presents an example heap checker.
--
Ray Lischner, Tempest Software, Corvallis, Oregon, USA
Author of Secrets of Delphi 2 (http://www.tempest-sw.com/secrets/)