DMMS (Dynamic Memory Management System)

NAME

hpcheck - Memory integrity check routine

USAGE

call hpcheck(errcode)

DESCRIPTION

Performs an integrity check on all blocks allocated with hpalloc . Each control byte is examined to ensure that it has not been overwritten. If any over-indexing is detected, hpcheck will give an error message and a potential traceback for the corrupted block. hpcheck can be called many times in the same program in order to determine more precisely where a particular block has been corrupted.
ARGUMENTS

errcode

error code . 0 if no error was detected; otherwise, a negative integer code indicates the type of error (output).
AUTHOR
Mario Lépine - RPN
NOTES
Debugging aids can be obtained via some environment variables such as DEBUG_MODE, INITMEM, BAD_POINTER.

SEE ALSO

( hpalloc, hpdeallc, memoirc, bkcheck, dmmsdbg)