|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
Debugging and Exception Classes
These classes provide support for debugging dynamic memory allocation and for passing exception information from the function where the exception is thrown to the function where it is caught.
Use classes CDumpContext and CMemoryState during development to assist with debugging, as described in Debugging MFC Applications. Use CRuntimeClass to determine the class of any object at run time, as described in the article Accessing Run-Time Class Information. The framework uses CRuntimeClass to create objects of a particular class dynamically.