Releases the COM Object given the dispatch pointer. The references to all inner IDispatch pointers obtained after your connection to the COM server are released. You must call COM_ReleaseDispatch_ on the Server object as soon as it is not needed.
COM_releaseDispatch_ ( serverHandle As User ) As Any
Argument | Type | Description |
---|---|---|
serverHandle | User | IDispatch Pointer |
Method getColorSchemeName(index As Integer) As String Dim inventor As User = COM_connectRunningServer_("Inventor.Application") Dim colorScheme As User = COM_getProperty_(inventor, "ColorSchemes", checkArguments? := True, index) Dim displayName As String = COM_getProperty_( colorScheme, "Name") COM_releaseDispatch_( colorScheme ) ' if you forget to release colorScheme, the next call will do this COM_releaseDispatch_( inventor) Return displayName End Method