Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

Function break_memory_alloc

boost::debug::break_memory_alloc — Causes program to break execution in debugger at specific allocation point.

Synopsis

// In header: <boost/test/debug.hpp>


void break_memory_alloc(long mem_alloc_order_num);

Description

On some platforms/memory managers (at the moment only on Windows/Visual Studio) one can tell a C Runtime to break on specific memory allocation. This can be used in combination with memory leak detection (which reports leaked memory allocation number) to locate the place where leak initiated.

Parameters:

mem_alloc_order_num

Specific memory allocation number


PrevUpHomeNext