Article ID: 151585
Article Last Modified on 9/30/2005
APPLIES TO
- The Integrated Debugger, when used with:
- Microsoft Visual C++ 4.0 Standard Edition
- Microsoft Visual C++ 4.1 Subscription
- Microsoft Visual C++ 4.2 Enterprise Edition
- Microsoft Visual C++ 4.2 Professional Edition
- Microsoft Visual C++ 5.0 Enterprise Edition
- Microsoft Visual C++ 5.0 Professional Edition
- Microsoft Visual C++ 6.0 Enterprise Edition
- Microsoft Visual C++ 6.0 Professional Edition
- Microsoft Visual C++ 6.0 Standard Edition
This article was previously published under Q151585
SUMMARY
When tracking down memory leaks using the debug C-Runtime (CRT), it is
often useful to set a breakpoint immediately before allocating the memory
that causes the leak. By setting _crtBreakAlloc at either compile time or
run-time, you can cause a user-defined breakpoint at a specific point of
memory allocation.
Keywords: kbhowto kbbug kbcrt kbide kbdebug KB151585