| Parameter | Type | Description | |
| ioObject | Longint | ↔ | A handle to an object |
| Discussion |
When you are finished with an object, you should always call OT Clear to release the memory occupied by the object. If you create an object and then lose track of its handle, you will no longer be able to release its memory. This is known as a leak, and it is considered a Bad Thing.
ObjectTools maintains an internal list of all objects that have been created but not cleared. When an object is disposed of with OT Clear, it is removed from the list. The current list of created objects is available with the OT GetHandleList method.
You can actually release the memory used by leaked objects with OT GetHandleList or OT ClearAll. However, using these as a means of object memory management is not recommended.
It you pass a variable directly to OT Clear (as opposed to an extremely lucky guess at a number constant), the variable will be set to zero.
Note It is legal to pass a null handle (0) to OT Clear.

