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: Question about demo App_fd_exchange

Part Number: TDA4VM

Hi TI, 

       In app_fd_exchange demo, once the object exchange is complete, then both consumer and producer 's objects  pointing to the same memory. 

      But when they both deinit, producer use App_Common_DeAllocImageObjects to free producer's object, consumer use App_Common_DeAllocImageObjects to free consumer's object. Two object pointing to one memory. So do I have any misunderstanding? Because in my view, one memory cannot be free twice. 

Regards,

  • Hi,

    I checked the release API for the OpenVX objects. 

    For eg. the ownDestructImage() API in vx_image.c, will be called for image object. 

    Here, you could see there is the check (obj_desc != NULL) and another check (host_ptr != NULL).. These are the checks that would avoid multiple releases of the same memory.

    Regards,

    Nikhil