Logging Out from the Essbase Server and Terminating the API

When all database operations are complete, the application should first log out by calling EsbLogout(). 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 EsbTerm() function, passing the instance handle which was returned from the original call to EsbInit(). This releases all resources used by the Essbase API. After calling this function, no other API calls can be made, unless EsbInit() is called again to reinitialize the API.