[Overview][Constants][Types][Classes][Procedures and functions][Variables] | Reference for unit 'System' (#rtl) |
Allocate memory on the heap for a new instance
Source position: objpash.inc line 150
NewInstance allocates memory on the heap for a new instance of the current class. If the memory was allocated, the class will be initialized by a call to InitInstance. The function returns the newly initialized instance.
If not enough memory is available, a Nil pointer may be returned, or an exception may be raised.
|
TObject Constructor |
|
|
Initialize a new class instance. |
|
|
Return the size of an instance. |
|
|
Clean up instance and free the memory reserved for the instance. |
No notes exist for this page yet.