DMMS (Dynamic Memory Management System)

NAME

bkcheck - Memory integrity check routine

USAGE

call bkcheck(ptr, errcode)

DESCRIPTION

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

ptr

pointer to the block to be checked.

errcode

error code . 0 if no error was detected; otherwise, a negative integer code for 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, hpcheck, dmmsdbg)