Original Post
We are working on an MFC based tool (I know, I know, MFC is outdated and ugly) and we were looking at Windows Task Manager and have been noticing a consistent memory leak with the tool. We have commented out all of our rendering and logic code, and we still are leaking about 4K a second, and about 8K every other second. We have narrowed it down to a SetDlgItemText() call, which when commented out takes away the 8K leak. We have been using CStrings, but even have attempted to use a const string literal like "HELLO" and we still get a leak. So, our assumptions are that either SetDlgItemText() has a known issue (which isn't documented either in MSDN or across the web according to Google) or Windows Task Manager is a liar, or we are a couple of idiots and are using SetDlgItemText() incorrectly. I brought out some old MFC apps to see if the same thing was happening and oddly enough it was. Anyone else run into this issue before? We could use some insight, thanks.