Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Submitted By: Kevin J Bluck (kbluck)
Assigned to: Roland Schwarz (speedsnail)
Summary: [thread] [tss_hook.cpp] Suppress MSVC CRT memory leak report
MSVC CRT memory debugger pedantically complains about
an unreleased singleton allocation. Although the
consensus is that this is a harmless annoyance, it does
cause some concern for MSVC users who don't know what
is happening. Issue discussed in this Boost mailing
Attached is a patch for tss_hook.cpp, which uses the
function _CrtSetDbgFlag to temporarily turn off heap
allocation tracking for the particular allocation in
question. It should have no effect except on MSVC debug
builds. On my configuration (msvc-8_0) it eliminates
the leak warnings.
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).