If the API function you are calling is likely to generate a lot of data in a return parameter, such as calls to EsbLogin(), EsbAutoLogin(), EsbGetString(), and EsbListDatabases(), you should ensure that you have reserved enough buffer space to receive the data.
might assist you in identifying and solving problems.
Table 8. Visual Basic Main API Common Problems and Solutions
Problem | Solution |
---|---|
Your program is generating protection faults. | If you are having this problem with a Visual Basic program, check the declared indirection level of any pointers being passed to the API. |
Your program generates an Essbase error when calling an API function. | Most of the Essbase error messages are self-explanatory, and it should be fairly obvious where the problem lies. However a couple of common errors to watch out for are (%n indicates a message argument which is replaced by a context-specific string):
|
Your program is consistently receiving an Essbase error return code from an API function, but no message is displayed, or a message saying "No message for message #%1 in message database" is generated. | Certain internal API errors cannot display a message, typically because the user's context information is not available when the message occurs. In these cases, make a note of the error code returned from the function, then refer to the list of error messages in the header file ESSERROR.H to find the corresponding message text. |