I have written two classes: GHeap_Block and GHeap, in which I assuage the task of handling heaps. One of the GHeap constructors enables the creation of an ever-growing heap. Whenever the number of bytes in a heap block dependent upon a heap exceeds its size Windows automatically allocates more memory for the heap. However, it has come to my attention that when a heap_block is freed, the memory it occupied is still allocated by the heap. Thus, the heap is ever growing. Is there any way in which I can make it so that the heap shrinks at the appropriate time?
BTW, originally I accidently titled this, "Does the heap ever sleep?" I did not intend to title it that. I tried to change it to, "Help with the heap"
