next up previous contents index
Next: free_memory_block Up: Functions and Procedures Previous: get_meminfo

allocate_memory_block

   

Declaration:

Function allocate_memory_block (size:Longint) : Longint;

Description:

Allocates a block of linear memory.

Parameters:

size:
Size of requested linear memory block in bytes

Returned values: blockhandle - the memory handle to this memory block Linear ?? address of the requested memory.

Notes: WARNING: According to my DPMI docs this function is not implemented correctly. Normally you should also get a blockhandle to this block after successful operation. This handle is used to free the memory block afterwards or use this handle for other purposes. So this block can't be deallocated and is henceforth unusuable !

This function doesn't allocate any descriptors for this block, it's the applications resposibility to allocate and initialize for accessing this memory.

Errors:

Check int31error variable

See also:

free_memory_block



Michael Van Canneyt
Thu Sep 10 13:59:33 CEST 1998