Hello,
I expected I need to check only non-VX_SUCCESS after using the vxUnmapUserDataObject.
But I saw multiple examples which check a NULL pointer even though it returns VX_SUCCSS.
The tidl_rt_ovx.c file in SDK 8.1.0 has this code as an example.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I expected I need to check only non-VX_SUCCESS after using the vxUnmapUserDataObject.
But I saw multiple examples which check a NULL pointer even though it returns VX_SUCCSS.
The tidl_rt_ovx.c file in SDK 8.1.0 has this code as an example.
Hi,
Thank you for pointing this. This is a redundant check in the code.
The buffer pointer is never returned NULL if the status is returned VX_SUCCESS.
After creation of the UserDataObject, you could confirm using vxGetStatus to this object to ensure the user data object is created successfully.
Once this is done, vxMapUserDataObject will not return NULL buffer pointer if returned SUCCESS.
Regards,
Nikhil