Muokkaa

Jaa


IDebugExpressionEvaluator2::Terminate

Stops and cleans up the expression evaluator.

Syntax

int Terminate ();

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

Tells the expression evaluator when it is being cleaned up.

Example

The following example shows how to implement this method for a ExpressionEvaluatorPackage object that exposes the IDebugExpressionEvaluator2 interface.

STDMETHODIMP ExpressionEvaluatorPackage::Terminate(void)
{
    // scan the namespaces contained and delete
    EEExtensionMethodCache **ppChild = NULL;
    m_HashExtensionMethodCache.ResetHashIterator();
    while (ppChild = m_HashExtensionMethodCache.IterateHash())
    {
        delete *ppChild;
    }
    return VBEEImplicitVariables::Terminate();
}

See also