Method ActiveXObject():destroy() Foundation

Disconnects from a COM/ActiveX component.

:destroy() --> self

This method returns the object executing the method (self).


The method :destroy() disconnects the ActiveXObject from the COM/ActiveX component. The connection between an ActiveXObject instance and a COM/ActiveX component is established by calling the method :create().

:destroy() will not necessarily remove the COM/ActiveX component from memory. Instead :destroy() releases the interface of the COM/ActiveX component. It is the responsibility of the COM/ActiveX component's COM server to free its memory when all interfaces have been released by the clients using it.


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.