Function
Converts error code content to string. This function supports multi-process.
Format
Ret = AioGetErrorString ( ErrorCode , ErrorString )
Parameters
ErrorCode [ C, C++ : long ] [ Python : ctypes.c_long ]
Specifies error code.
ErrorString [ C, C++ : char * ] [ Python : ctypes.c_char_p ]
Specifies the pointer to the buffer for storing string.
Make sure that the size of buffer is greater than 256 bytes.
Return values
Ret [ C, C++ : long ] [ Python : ctypes.c_long ]
Return values |
Content |
0 |
Normality completion |
10180 |
Pointer to ErrorString is NULL |
Remarks
Make sure that the size of buffer for storing string is greater than 256 bytes.
If the device is in operation, this function cannot be performed.
Example
Stores the content of error code 10000 to ErrorString.
C, C++ |
long Ret; |
Python |
Ret = ctypes.c_long() |
Stores the string "The device name which wasn't registered by Configuration Tool was specified." to ErrorString.