Function _conLastError() Foundation
Determines the error code of the last operation.
XPPAPIRET _conLastError();
The function returns an error code (XPP_ERR_...).
_conLastError() is used to determine the error code for functions that return no error code. These are the functions for creating containers (_conNew...()) and for modifying containers (_conPut...()). When no error has occurred during the last called function, the return value of _conLastError() is undefined.
/*
Produces an array with 2 x 5000 elements and determines the error if
the operation fails.
*/
#include <xppcon.h>
ContainerHandle hArray;
XPPAPIRET xr;
hArray = _conNewArray(2, 2, 5000);
if (hArray == NULLCONTAINER)
{
xr = _conLastError();
/* ... error handling */
}
else
{
/* ... operations with the array container */
_conRelease(hNew);
}
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.