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.

CCS/IWR6843: what is gtrack_alloc() and malloc()?

Part Number: IWR6843


Tool/software: Code Composer Studio

Hello experts:

I want to replace  gtrack_alloc() with malloc(), code listed as follows:

GtrackModuleInstance *inst = NULL;

/inst = (GtrackModuleInstance *)gtrack_alloc(1, sizeof(GtrackModuleInstance));
 inst = (GtrackModuleInstance *)malloc(sizeof(GtrackModuleInstance));

//inst->bestScore = (float *)gtrack_alloc(inst->maxNumPoints, sizeof(float));
 inst->bestScore = (float*)malloc(sizeof(float*)*1);

When I debug the code, when I debug to the last sentence, a prompt dialog box pops up: GtrackUnitTest.exe has triggered a breakpoint(GtrackUnitTest is my project name).