See Also: Memory Management Functions
Changes the size of a block of memory.
Realloc( {aPointer}, {iNewSize} )
Where:
{aPointer} is a valid Pointer (allocated on the process heap using Alloc)
{iNewSize} is the new desired size in bytes
ReAlloc changes the size of the given memory block, aPointer, reallocating it to the size specified in iNewSize. The return value is either a pointer to a valid memory address (meaning it worked) or 0, in case of failure.
Move (Realloc(pMemory, 10000)) to pNewMemoryBlock
If (pNewMemoryBlock <> 0) ...