I am having a strange behaviour in a small WPF application. I have one button on a Window and it opens another window as a Dialog which has a few controls which are added dynamically. While doing that I keep an eye on its memory usage which increases (sysinternal procexp). But when I close that Window the memory usage does not come back.
Share
I’d recommend using this tool http://memprofiler.com/
I had some similar experiences in WPF and win forms.
It will probably be something not being disposed as previously suggested but memprofiler will show you exactly what it is and make finding the solution really easy.