# EssTerm

Description

EssTerm() terminates the API and releases all system resources used by the API. This function should normally be called after all other API calls have been completed, immediately prior to terminating your program.

Syntax

    ESS_FUNC_M  EssTerm (hInstance);

ESS_HINST_T | hInstance

Parameters

hInstance | Essbase API instance handle.

Return Value

None.

Notes

- Because this function terminates use of the Essbase API, any API functions (other than EssInit()) called after this function has been executed will return an error.

Access

This function requires no special access.

Example

    /* Terminate the Essbase API */
    if ((sts = EssTerm (hInstance)) != ESS_STS_NOERR)
    {
        /* error terminating API */
        exit ((ESS_USHORT_T) sts);
    }

See Also

EssInit()