Dispose of a heap memory block and Nil the pointer (deprecated).
Source position: db.pas line 2517
procedure DisposeMem( |
var Buffer; |
Size: Integer |
); |
Buffer |
|
Pointer to memory area. |
Size |
|
Size of the memory block. |
DisposeMem disposes of the heap memory area pointed to by Buffer (Buffer must be of type Pointer). The Size parameter indicates the size of the memory area (it is, in fact, ignored by the heap manager). The pointer Buffer is set to Nil. If Buffer is Nil, then nothing happens. Do not use DisposeMem on objects, because their destructor will not be called.
If Buffer is not pointing to a valid heap memory block, then memory corruption may occur.