How To Tracking Down Memory Leaks with _afxBreakAlloc (122307)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++ for Windows, 16-bit edition 1.0
- Microsoft Visual C++ for Windows, 16-bit edition 1.5
- Microsoft Visual C++, 32-bit Editions 1.0
- Microsoft Visual C++, 32-bit Editions 2.0
- Microsoft Visual C++, 32-bit Editions 2.1
This article was previously published under Q122307 SUMMARY
There is currently no documentation for the _afxBreakAlloc symbol defined
by MFC. However it can be extremely useful in finding the cause of memory
leaks in an application. This article explains how to use it.
Note: In Visual C++ 32-bit Edition, version 4.0, the method described
below is obsolete. For information on diagnosing memory leaks in this
version of Visual C++, refer to the Visual C++ 4.0 Books Online topic
"Diagnostics: Detecting Memory Leaks" in the "Programming with MFC:
Encyclopedia."
Modification Type: | Minor | Last Reviewed: | 7/13/2004 |
---|
Keywords: | kbBug kbDebug kbhowto kbide KB122307 |
---|
|