When my app receives a CResourceException or CMemoryException, I'd like to display a dialog telling my user that that's the reason I'm about to exit on him.
I plan to pre-allocate the dialog, and I'm catching the exception fine (in my override of CWinApp::ProcessWndProcException()). But can I assure that my dialog will show when I call DoModal()? It seems that will try to use a few more resources above and beyond what was preallocated. Can I free up some pre-allocated memory for use just by my app or my pre-allocated dialog?
I realize this solution may just be for the CMemoryException and not the CResourceException, but that's alright.
thanks for any pointers or code,