IPB

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

Language:
Русский
English

 Dispose (procedure)


Disposes a dynamic variable.

Declaration

 procedure Dispose(var P: Pointer [ , Destructor ]);

Target

Windows, Real, Protected

Remarks

Should not be used with Mark or Release.

The declaration of Dispose has been extended so it can also dispose of an object allocated on the heap, if you pass it that object's destructor as a second parameter, like this:

 Dispose(P, Done);

After a call to Dispose, the value of P is undefined and it is an error to reference P.

Restrictions

If P does not point to a memory region in the heap, a run-time error occurs.

See Also

Sample Code

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

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



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