Closing an Item


When a task finishes using an open item, it should close it so the kernel knows the item is no longer required by that task. When no tasks require an opened item, the kernel can remove the item from memory, freeing system resources.

To close an item, use this call:

Err CloseItem( Item i )
CloseItem() accepts the item number of the item to close. It returns 0 if successful or an error code (a negative value) if an error occurs.