Opened 17 years ago

Closed 16 years ago

#563 closed Patches (None)

[thread] [tss_hook.cpp] Suppress MSVC CRT memory leak report

Reported by: kbluck Owned by: Roland Schwarz
Milestone: Component: None
Version: None Severity:
Keywords: Cc:

Description

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
list thread:

http://lists.boost.org/boost-users/2005/08/13538.php 

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.

Change History (3)

comment:1 by Roland Schwarz, 17 years ago

Logged In: YES 
user_id=541730

I will look into this, since AFAIK Michael Glassford
currently is not available.

comment:2 by sf-robot, 17 years ago

Logged In: YES 
user_id=1312539

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).

comment:3 by Roland Schwarz, 16 years ago

Status: assignedclosed
Logged In: YES 
user_id=541730

The issue has been fixed in 1.34 and HEAD, altough
differently than the patch suggests. I cannot see that the
suggested patch is MT safe.
Note: See TracTickets for help on using tickets.