IPB

> GetMem (procedure)
Чат
Форум
Загрузка...
 

Language:
Русский
English

 GetMem (procedure)


Creates a dynamic variable of the specified size and puts the address of the block in a pointer variable.

Declaration

 procedure GetMem(var P: Pointer; Size: Word);

Target

Windows, Real, Protected

Remarks

P is a variable of any pointer type. Size is an expression specifying the size in bytes of the dynamic variable to allocate. The newly created variable can be referenced as P^.

If there is not enough free space in the heap to allocate the new variable, a run-time error occurs.

Restrictions

The largest block that can be safely allocated on the heap at one time is 65,528 bytes (64K-$8).

See Also

Sample Code

 
 К началу страницы 
Тэги: GetMem
 

Код для вставки: :: :: :: ГОСТ ::
Поделиться: //
 



-
Хостинг предоставлен компанией "Веб Сервис Центр" при поддержке компании "ДокЛаб"