In Win32, HeapFree doesn't return the memory
<p>I have tested about HeapAlloc and HeapFree in Win32 c++.</p>

<p>I have created private heap with HeapCreate(0,0,0).</p>

<p>Next, I have alloced 100KB with HeapAlloc(_heaphandle, 0, 1024*100).</p>

<p>The process memory increased about 100KB with some overhead.
I have checked this process memory with "process tab of windows work manager".</p>

<p>I have alloced 100KB some times.
So, I have got following result.</p>

<p>process memory : 1,312KB  committed:3472, uncommitted:258048, alloced: 0</p>

<p>process memory : 1,420Kb  committed:7544, uncommitted:151552, alloced: 102400</p>

<p>process memory : 1,524Kb  committed:11616,uncommitted:45056,  alloced: 204800</p>

<p>process memory : 1,632KB  .............                       alloced: 307200</p>

<p>process memory : 1,736KB  .............                       alloced: 409600</p>

<p><strong>Next, I have freed memory with HeapFree(_heaphandle, 0, pointer).</strong></p>

<p><strong>But, the process memory doesn't return memory.I'm really curious when the process memory free.</strong></p>

<p>I have got following result.</p>

<p>process memory : 1,736KB  committed:23744, uncommitted:876544, alloced: 409600</p>

<p>process memory : 1,736Kb  committed:126152,uncommitted:876544, alloced: 307200</p>

<p>process memory : 1,736Kb  committed:228592,uncommitted:876544, alloced: 204800</p>

<p>Finally, I have destroyed private heap with HeapDestroy(heaphandle).
then, all heap memory free.
The Process memory goes to initial value 1,312KB.</p>

<p>If I use many memory, I am concerned to suffer from lack of memory.</p>

<p>Thx. :)</p>
