%CoRelease Interface

Release a dispatch or COM object when done.

Syntax

retcode = %CoRelease( Param1, Param2 )

Parameter(s)

Param1 [in]

Dispatch object to be released.

Param2 [in]

Boolean: FALSE to release just the dispatch object passed-in, TRUE to release the COM object to which this dispatch object belongs.

Returns

A Boolean (Success or Fail)

Error Handling

Call CoGetException to get an error description.

Comments

NOTE

A call to release a COM object releases all resources associated with this COM object and removes it from the COM object list. This call does not uninitialize the COM library. The user must call %CoUninitialize before terminating the FlashBASIC module.

See Also

Using the COM Interface to FlashBASIC

FlashBASIC Automation Application Interfaces