Function nvcvGetLastErrorMessage
Defined in File Status.h
Function Documentation
-
NVCVStatus nvcvGetLastErrorMessage(char *msgBuffer, int32_t lenBuffer)
Returns and resets the error status code and message of the last CV-CUDA function call that failed in current thread.
A new call to this function will return NVCV_SUCCESS, as the thread-specific status was reset. This operation doesn’t affect the status in other threads.
It’s guaranteed that the message is never larger than NVCV_MAX_STATUS_MESSAGE_LENGTH bytes, including the ‘\0’ string terminator.
- Parameters:
msgBuffer – [out] Pointer to memory where the status message will be written to. If NULL, no message is returned.
lenBuffer – [in] Size in bytes of msgBuffer.
If less than zero,
lenBuffer
is assumed to be 0.
- Returns:
The status of the last CV-CUDA function call that failed in current thread.