Other Parts Discussed in Thread: SYSBIOS
dear,
I run my rht algorithm in sysbios6.35.1.29 & XDCtools 3.25.0.48. when i release memory by follow statement.
Memory_free(heap, aImage->data[x], aImage->y * sizeof(unsigned char));
an error occurred.
enter main()
enter taskFxn()
ti.sysbios.heaps.HeapMem: line 322: assertion failure: A_invalidFree: Invalid free xdc.runtime.Error.raise: terminating execution.
enter main(),enter taskFxn() are printed by system_printf(),, is it mean the process is end?
I don't know why, please tell me.
ti.sysbios.heaps.HeapMem line 322:
{
/* * Make sure the entire buffer is in the range of the heap.
* Note the obj->head.size never changes.
* The "- 1" is to handle the case were the buffer goes up
* the 0xFFFFFFFF. Without the "- 1", the buf + size is 0.
* This was done to address SDOCM00096968. */
Assert_isTrue((((UArg)newHeader >= (UArg)(obj->buf)) && ((UArg)newHeader + (size - 1) <= (UArg)(obj->buf) + (obj->head.size - 1))), HeapMem_A_invalidFree);
}
best wish! thanks!