I started a simple dialog based project. On the dialog, there is a push button that when pressed brings up another dialog. I use the task manger to watch the memory used by my program. I bring up the second dialog by pressing on the push button and then close it. After I repeat this for few times I see the memory increased by 4K. (I assume window allocates memory to the processes in 4K chunks, otherwise, I would have seen the increase in the memory usage any time I brought up and dismissed the second dialog). I use modal dialog, I use a non modal dialog and call DestroyWindow on it, but in all the cases memory leak is still there. Does anybody know what is going on?
Thanks
Thanks