Boost logo

Boost Users :

From: n.torrey.pines_at_[hidden]
Date: 2007-03-06 19:57:34


This little program, compiled on VC++ 8.0 leaks memory, apparently.

#define BOOST_AUTO_TEST_MAIN
#include <boost/test/auto_unit_test.hpp>
#include <boost/thread/thread.hpp>

void f() {}

BOOST_AUTO_TEST_CASE(threads_leak) {
        boost::thread thrd(&f);
        thrd.join();
}

Output:

Running 1 test case...

*** No errors detected
Detected memory leaks!
Dumping objects ->
{218} normal block at 0x00357458, 24 bytes long.
 Data: < 9 > 80 39 15 00 FF FF FF FF 00 00 00 00 00 00 00 00
{217} normal block at 0x00357398, 8 bytes long.
 Data: <Xt5 > 58 74 35 00 01 CD CD CD
Object dump complete.

Versions:

Boost-1.33.1
VC++8.0 (debug mode)
Windows XP
extra lib: libboost_unit_test_framework-vc80-mt-gd.lib (not auto-linked)

Can anyone using VC++ 8.0 and the release version of Boost confirm
this? With Google, I found some past references to Boost.Thread
leaking memory.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net