Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



How to define the destructor

The interface definition's destructor must call the static function REComSession::DestroyedImplementation() to signal the object's destruction to ECom, passing the initialised instance identifier key.

Note that you must not call REComSession::FinalClose() in the interface destructor, or elsewhere in the interface. This must be done by the client: see How to clean up with FinalClose().

Example

inline CExampleInterfaceDefinition::~CExampleInterfaceDefinition()
    {
    REComSession::DestroyedImplementation(iDtor_ID_Key);
    }