21 Jan
2006
21 Jan
'06
3:59 p.m.
monade wrote:
Is it that good? Even for this simple sample there are memory leaks under vc.net.
Maybe you tell us what exactly is leaking? Your code seem to suggest that join throws something (or why did you do unsafe dynamic allocation?), although that's not the case.
void doNothing() {} int main() { boost::thread* thrd = new boost::thread( &doNothing ); thrd->join(); delete thrd; return 0; }
Jens