ObjectDCL Banner

AxObject_Release Method

Description

When a property or method passes back an OleObject handle consisting of a list with to long integers in it is passing an address to a OleObject.

The object must be cleared from memory eventually. ObjectDCL will clear all the OleObjects for you once the dialog boxes are closed. If you wish to keep the memory clean use this method to clean the OleObject from memory once you are finished with it. This method will not delete the item it handles, just the internal device used to modify the control or object belonging to the control.

Parameters

MyOleObject
OleObject to the ActiveX object.

Return Values

Returns the following according to the situation:

  • T when successful.
  • Nil if the object is not found.

AutoLISP Syntax

CopyCode imageCopy Code
(Odcl_AxObject_Release 
		MyOleObject [as OleObject])

Applies For

ActiveX.

Example

CopyCode imageCopy Code
; Get the ActiveX object
(Setq rObject (Odcl_AxControl_GetOleObject MyProject_MyForm_MyControl))

; Release the handle to the ActiveX
(Odcl_AxObject_Release rObject)

See Also

AxControl_GetOleObject