Boost C++ Libraries: Ticket #4346: Boost pool's not comaptible with Microsoft memory leak detection https://svn.boost.org/trac10/ticket/4346 <p> Boost pool classes not compatible with Microsoft memory leak detection. </p> <p> You can include that lines in code: #ifdef _DEBUG </p> <blockquote> <p> #define _CRTDBG_MAP_ALLOC </p> </blockquote> <p> #endif #include &lt;crtdbg.h&gt; #include "boost\pool\pool_alloc.hpp" </p> <p> We can solve problem using two ways: </p> <ol><li>Rename all malloc &amp; free methods </li><li>Add #pragma push_macro, #undef and #pragma pop_macro lines. Also add alternative names for malloc and free methods </li></ol> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4346 Trac 1.4.3 Arkadiy Shapkin <arkadiy_s@…> Tue, 15 Jun 2010 16:51:41 GMT attachment set https://svn.boost.org/trac10/ticket/4346 https://svn.boost.org/trac10/ticket/4346 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">pool.patch</span> </li> </ul> Ticket Steven Watanabe Tue, 15 Jun 2010 23:12:20 GMT component changed; owner set https://svn.boost.org/trac10/ticket/4346#comment:1 https://svn.boost.org/trac10/ticket/4346#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Chris Newbold</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">pool</span> </li> </ul> Ticket Steven Watanabe Wed, 16 Jun 2010 02:27:21 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4346#comment:2 https://svn.boost.org/trac10/ticket/4346#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/63009" title="Protect Boost.Pool from evil #defines of malloc and free. Fixes #4346.">[63009]</a>) Protect Boost.Pool from evil #defines of malloc and free. Fixes <a class="reopened ticket" href="https://svn.boost.org/trac10/ticket/4346" title="#4346: Bugs: Boost pool's not comaptible with Microsoft memory leak detection (reopened)">#4346</a>. </p> Ticket Marshall Clow Tue, 11 Jan 2011 14:22:36 GMT <link>https://svn.boost.org/trac10/ticket/4346#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4346#comment:3</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/67958" title="Merging fixes to release; Fixes #2696; Refs #4346; Refs #2941; Refs #386">[67958]</a>) Merging fixes to release; Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2696" title="#2696: Bugs: max_size for boost pool (closed: fixed)">#2696</a>; Refs <a class="reopened ticket" href="https://svn.boost.org/trac10/ticket/4346" title="#4346: Bugs: Boost pool's not comaptible with Microsoft memory leak detection (reopened)">#4346</a>; Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2941" title="#2941: Tasks: boost/pool/pool.hpp uses reinterpret_cast instead of static_cast (closed: fixed)">#2941</a>; Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/386" title="#386: Bugs: boost::pool_allocator breaks with vector of vectors (closed: fixed)">#386</a> </p> </description> <category>Ticket</category> </item> <item> <author>serg_joker@…</author> <pubDate>Sun, 03 Apr 2016 19:30:28 GMT</pubDate> <title>status, version, severity, milestone changed; resolution deleted https://svn.boost.org/trac10/ticket/4346#comment:4 https://svn.boost.org/trac10/ticket/4346#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>version</strong> <span class="trac-field-old">Boost 1.44.0</span> → <span class="trac-field-new">Boost 1.60.0</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">fixed</span> </li> <li><strong>severity</strong> <span class="trac-field-old">Problem</span> → <span class="trac-field-new">Regression</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.43.0</span> → <span class="trac-field-new">Boost 1.61.0</span> </li> </ul> <p> Reproduced again. MSVC 2015 Update 1 boost 1.60 </p> <p> Looks like #pragma push_macro/undef/pop_macro stuff was eliminated </p> Ticket Sergey Pastukhov <serg_joker@…> Sun, 03 Apr 2016 19:44:08 GMT cc set https://svn.boost.org/trac10/ticket/4346#comment:5 https://svn.boost.org/trac10/ticket/4346#comment:5 <ul> <li><strong>cc</strong> <span class="trac-author">serg_joker@…</span> added </li> </ul> Ticket