Cursor.destroyHandle

Overview | Methods | Fields | This Package | All Packages

Cursor.destroyHandle

Called when this object is going to destroy its Win32 handle.

Syntax

protected void destroyHandle()

Remarks

The Cursor class' implementation of destroyHandle frees only handles owned by the Cursor object. If you create a Cursor object based on a previously allocated handle, this method does nothing. Similarly, if you have used the Cursor object's copyHandle method to duplicate the cursor handle, this handle is not freed by the object's call to destroyHandle; you are responsible for freeing these handles.

However, you can override this method in your Cursor-derived class to define your own custom semantics for handle creation and destruction.