AnsweredAssumed Answered

Explicitly clear Heap pointer

Question asked by Kunal Panchamia on Aug 18, 2014
Latest reply on Aug 20, 2014 by Carlos_Musich

CPU : K61FX512

Using CW10.6

Language - C++


I am working on a code that uses a lot of "new" - dynamic mem allocation but doesn't delete the objects after using them.

The Code is running from ext DDR. I am doing a soft reset by jump to application (since soft reset command will send the control to 0x00000000).

I am able to re-initialize the stack pointer properly but heap pointer is managed by EWL which doesn't reset it after this soft reset.

Is it possible to explicitly clear/reset the heap pointer in C++?