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.

TDA4VM-Q1: Could the vxUnmapUserDataObject return NULL pointer even though it returns VX_SUCCESS?

Part Number: TDA4VM-Q1

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.

status = vxMapUserDataObject(config, 0, sizeof(tivxTIDLJ7Params), &map_id,
(void **)&tidlParams, VX_WRITE_ONLY, VX_MEMORY_TYPE_HOST, 0);

if (VX_SUCCESS == status)
{
    if(tidlParams == NULL)
    {
        printf("TIDL_RT_OVX: ERROR: Map of config object failed\n");
        return NULL;
    }
...
I want to make sure whether I need to check two things all the time and to know what is a possible reason NULL with VX_SUCCESS.
 
Best regards,
Seunghyun