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).