PDF Presentation - Uplinq
PDF Presentation - Uplinq
PDF Presentation - Uplinq
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Some Simple Tips for Memory Leaks<br />
• Analyze any possible memory leak reported by BMP<br />
– Typical message from the logger<br />
• *AEEModule.c 00266 Warning—memory leak, freeing, 0xABCD1010, NONAME,<br />
size 328<br />
– Indicates a memory leak of 328 bytes from memory address 0xABCD1010<br />
– The source of the memory is NONAME because the memory block was<br />
not tagged<br />
– To enable the heap blocks to be tagged with the filename/linenumber, insert<br />
• “#define AEE_DEBUG_HEAP 1” before the app includes AEEStdLib.h.<br />
• Remove this #define before shipping i commercial product<br />
• *AEEModule.c Leverage c_heaptracker app to track app’s heap usage<br />
over time to see whether the available heap keeps decreasing for no<br />
reason<br />
38