| HLock | Function (ROM Call 0x99)

alloc.h

void *HLock (HANDLE Handle);

Locks and dereferences a handle.

HLock locks a block referenced by Handle so that it will not move on the next heap compression, and returns a pointer to the actual memory block. Returns NULL in a case of error.
Note: Locking memory may cause the system to run out of usable memory sooner than if memory is kept unlocked.

Uses: HeapLock
Used by: realloc, cmd_cubicreg, cmd_expreg, cmd_linreg, cmd_lnreg, cmd_logistic, cmd_medmed, cmd_onevar, cmd_powerreg, cmd_quadreg, cmd_quartreg, cmd_sinreg, cmd_sorta, cmd_sortd, cmd_toolbar, cmd_twovar, display_statements, NG_tokenize, Parse1DExpr, HomeExecute, fopen, fputc, TE_handleEvent, CustomBegin, SP_Define