COM_delete

Removes COM control or server.

Syntax

  • COM_delete(h)

  • delete(h)

Input argument

  • h - a handle: a COM object.

Description

delete(h) releases all the interfaces derived from the specified COM server or control, and then deletes the server or control itself.

This is different from releasing an interface, which releases and invalidates only the particular interface.

Do not forget to clear h afterward.

Example

pTextToSpeech = actxserver('Sapi.SpVoice')
delete(pTextToSpeech)
clear pTextToSpeech

See also

actxserver.

History

Author

Allan CORNET

Last updated