DELETE PTR


General Forms:

DELETE PTR(id)
Where:
id = a numeric expression identifying an object allocated by NEW

The DELETE PTR statement frees the memory allocated to a memory pool object by a previous NEW statement.

pData = NEW _mydata
...
DELETE PTR(pData)

The objects in a memory pool are automatically deleted when the function owning the pool goes out of scope but it is good practice to free objects with DELETE PTR() once they are no longer needed.

Status

Experimental.

Compatibility

Introduced with KCML 7.00.

Syntax examples:

DELETE PTR(m)

See also:

NEW,
Tutorial on memory pooling