Logging Out from the Essbase Server and Terminating the C Main API

When all database operations are complete, the application should first log out by calling EssLogout(). This frees up any internal resources reserved within the database, and may also free the login port on the server for use by another user.

When an application program is about to terminate, it should call the EssTerm() function, passing the instance handle which was returned from the original call to EssInit(). This releases all resources used by the Essbase API. After calling this function, no other API calls can be made, unless EssInit() is called again to reinitialize the API.