Boost logo

Boost :

From: Sean Huang (huangsean_at_[hidden])
Date: 2006-07-11 11:50:34


----- Original Message -----
From: "SourceForge.net" <noreply_at_[hidden]>
Newsgroups: gmane.comp.lib.boost.devel
Sent: Tuesday, July 11, 2006 11:34 AM
Subject: [Boost-bugs] [ boost-Bugs-1520617 ] Memoryleak whenusing
boost::thread and boost::test together

>
> Initial Comment:
> When I tried to use boost::thread with boost::test
> (Unit Test Framework) I've always got the followed
> message:
> Detected memory leaks!
> Dumping objects ->
> {227} normal block at 0x00364698, 24 bytes long.
> Data: <PS > 50 53 14 00 FF FF FF FF 00
> 00 00 00 00 00 00 00
> {226} normal block at 0x00364428, 8 bytes long.
> Data: < F6 > 98 46 36 00 01 CD CD CD
> Object dump complete.
>
> It does not matter from Boost version (I tried the
> latest one as well). The error is reproduced with
> simple examples from boost::thread docs.
>
> Platform: Win32
> Compiler: Microsoft Visual C++ version 7.1
> STL : Dinkumware standard library version 313
> Boost : 1.33.1
>
> Could you help me?
>
These are actually false memory leaks. The memory blocks allocated by
boost::thread_specific_ptr will be released after the "memory leak" report.
On the other hand, boost::test might want to change the default to not
report the memory leaks.

Sean


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk