 a maximum of 255 locks per block), and each unlock decrements it. The memory manager can only move the block when the lock count is zero.</P>
<P>
One warning about locking blocks: Do not try to lock a block which was allocated as fixed. Attempting to do so will result in a system error. If you need to translate a fixed-block handle to a pointer, call <CODE>
MemDeref()</CODE>
.

</P>
<P>
<CODE>
MemLock()</CODE>
<A NAME="70173">
 </A>
<A NAME="IX_MemLock()">
 </A>
 locks a block on the heap. It is passed the