Search:

As defined in xcapi.h

xerr xcDestroyObject(xhandle *object);

Description:

Destroys a specified session or container object and deallocates its associated resources. If a container object is passed in as the parameter, then all slots in that container are removed and the object is destroyed and invalidated. The function waits for the outstanding callbacks (if any) to return prior to executing. If a session object is passed in as the parameter, then the session is disconnected and the object destroyed. In addition, any objects spawned from that session instance are invalidated.

Restrictions:

Parameters:

Returns:

An xerr type indicating the status of the operation.

Common error codes:

XSUCCESS Successfully destroyed.
XINVAL An invalid parameter was supplied.
XTYPE An invalid object type was specified (e.g., an event object)
XTHREAD Called from any invalid thread.
XBADHANDLE Invalid handle.



[ Top Of Page ]