Explanation
The length of a DBCHAR
or UNICODE substring must be even to refer to a whole number of characters.
User Response
Do as follows:
- Change the program logic to ensure that the length arguments passed to
the function have valid values; or
- Call the function in a try statement, or set vgVar.handlesysLibraryErrors
to 1 before calling the function, so that the program can handle the error.