Post date: Jan 10, 2014 8:1:5 PM
As memory fragmentation is already very well explained, Ill not rewrite instead give some links to understand and prevent memory fragmentation.
handling of dynamic memory can be problematic and inefficient.
For embedded applications ignoring memory fragmentation issues is not an option.
1. Understand memory fragmentation problem
http://stackoverflow.com/questions/3770457/what-is-memory-fragmentation
http://www.design-reuse.com/articles/25090/dynamic-memory-allocation-fragmentation-c.html
2. memory fragmentation preventaion ideas
http://stackoverflow.com/questions/16402059/allowing-heap-allocating-objects-inside-a-short-lived-scope-to-ensure-freedom-of
3.
resources to analyze memory fragmentation
http://stackoverflow.com/questions/10835061/tools-for-checking-memory-fragmentation
get memory info run time
http://www.codeproject.com/Tips/123149/How-to-get-individual-process-memory-usage-statist.aspx