RelSel Release a selector.

Inputs: AX = 0ff04h

BX = Selector.

Outputs: Carry set on error.

Errors: If an invalid selector is passed in BX, this function returns with carry set.

Notes: Use this function to release selectors allocated by GetSel or AliasSel.

ResMem Resize a previously allocated block of memory.

Inputs: AX = 0ff0dh

BX = Selector for block.

CX:DX = New size of block required in bytes.

Outputs: Carry set on error.

Errors: If an invalid selector is passed in BX or not enough memory is available when increasing the block size, then this function returns carry set.

Notes: If the memory block cannot be resized in its current location, but a free block of memory of the new size exists, the memory is copied to a new block and the old one is released. The application is not affected as long as only the selector originally allocated with GetMem accesses the memory.

Next Page

Previous Page

Go to Table of Contents

Go back to Devore Software & Consulting home page