Ok, But why do I get a mem leak with VC 8 Express on windows if I run Unit Tests? I will try to investigate more on this issue. Thanks, Ovanes -----Original Message----- From: Peter Dimov [mailto:pdimov@mmltd.net] Sent: Sunday, January 21, 2007 2:57 PM To: boost-users@lists.boost.org Subject: Re: [Boost-users] Doesboost::thread_group::create_threadhave memory leak? pete@mu.org wrote:
==19432== 144 bytes in 1 blocks are possibly lost in loss record 1 of 1 ==19432== at 0x401F6A5: calloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so) ==19432== by 0x401017A: allocate_dtv (in /lib/ld-2.4.so) ==19432== by 0x4010224: _dl_allocate_tls (in /lib/ld-2.4.so) ==19432== by 0x42B289F: pthread_create@@GLIBC_2.1 (in /lib/libpthread-2.4.so) ==19432== by 0x4050213: boost::thread::thread(boost::function0
boost::function_base > const&) (thread.cpp:171)
As you can see, the block has been allocated by pthread_create, not by Boost.Threads. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users