id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 610,object destructor called four times when using thread,nobody,Roland Schwarz,"{{{ franzronan@yahoo.com I created this test application, I don't know if I implemented it right but I got four calls on the class test destructor... current lib version 1.32 #include #include #include using namespace std; class test { public: test() { cout << ""constructor"" << endl; }; ~test() { cout << ""destructor"" << endl; }; void operator()() { boost::xtime xt; boost::xtime_get(&xt, boost::TIME_UTC); xt.sec += 5; boost::thread::sleep(xt); cout << ""sleep"" << endl; }; }; int main(int argc, char *argv[]) { //test scope { test* a = new test(); boost::thread* thrd=new boost::thread(*a); //got for desctructor calls... thrd->join(); } } }}}",Bugs,closed,,threads,None,,Rejected,,