I have a C++ MFC application. I recently started having the following problem: if I leave it running in the background (minimized ) for 10 or 15 minutes, when I eventually come back to it (select it in the taskbar), my application's windows draw very strangely, and the program crashes. By "strange", I mean that the windows that should be positioned at the bottom of the screen draw at the top, but without borders, when I select menu items, a dialog displays with another window inside it (that isn't supposed to be there), etc. I get assert error messages also.
I must note that this problem does NOT happen if I leave my application running and keep it in focus (ie, I DON'T minimize it).
Any help would be greatly appreciated.