Discuss this help topic in MsgConnect Forum

Filter: C++  Pascal  C#  VB.NET  Java  Java ME  ActiveX  DLL 



MessageHandler.Destroy

MessageHandler     See also    


Disposes of the MessageHandler object.

Declaration

[C++]
    ~MCMessageHandler();

[Pascal]
    destructor Destroy;

[VB6]
    not applicable;

[ActiveX]
    not applicable;

[C#]
    void Dispose();

[VB.NET]
    Public Sub Dispose();

[Java]
    not applicable;

[Java ME]
    not applicable;

[DLL]
    void __stdcall MCMessageHandlerDestroy(HMCQueue h);

Parameters

Description

    Use this method to dispose of MessageHandler object. Usually it is not necessary to destroy MessageHandler objects manually -- the queue will do this for you when destroyed. However if you do wish to delete the handler immediately, you can use this method.

    Note: you should not destroy an object from OnMessage event handler.

See also:     OnMessage    

Discuss this help topic in MsgConnect Forum