<< COM examples COM engine COM_fieldnames >>

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


Version Description
1.0.0 initial version

Author


Allan CORNET

<< COM examples COM engine COM_fieldnames >>