Dear Greats,
We are working on Windows CE 5.0 Operating system, Explorer template.
(AMD Au1200, Board Support Package) is used.
We have written one simple application
main()
{
char * strTemp = new char[10];
getch()
delete [] strTemp
}
The problem we are observing is, After 'new" two heaps of 4K is
created (This we have monitored in using Entrek ProcMan tool).
One 4K heap has 16 bytes are allocated and left are shown as free
space. After "delete", one of the 4K heap is deleted but the
additional heap created is not deleted.
Kindly any one of you can guide us on solving this problme. because of
this the system memory is growing up and ending in a crash.
Can we use HeapCompact call to clear up this process memor? Can run a
separate thread in Windows CE OS to clearing the memory marked for
deletion.
With regards,
Mams