External Interfaces/API    

Additional ActiveX Client Information

Releasing Interfaces

Each ActiveX object can support one or more interfaces. In MATLAB, an interface is represented by an instance of the activex class. There are three ways to get a valid interface object into the MATLAB workspace:

In each case, once the interface is represented by an activex object in the workspace, it must be released when you are finished using it. Failure to release interface handles results in memory and resources being consumed. Alternatively, you can use the delete command on any valid interface object, and all interfaces for that object are automatically released, and thus invalidated, and the ActiveX server or control itself is deleted.

MATLAB automatically releases all interfaces for an ActiveX control when the figure window that contains that control is deleted or closed. MATLAB also automatically releases all handles for an ActiveX automation server when MATLAB is shut down.


 Writing Event Handlers Using ActiveX Collections