| Thread Tools | Search this thread |
|---|
tommy_developer
| July 6, 2009 1:54 AM PDT Memory leak from TBB when did nothing but only new/delete a task_scheduler_init. | ||||
The following sample code will cause memory leaks: // // create a new TBB task scheduler, the leaked bytes varies with the number of threads !! // tbb::task_scheduler_init *pScheduler = new tbb::task_scheduler_init(4); // // do nothing // // // terminate the scheduler // pScheduler->terminate(); // // delete the pointer // delete pScheduler; If the parameter is 1, then no leaks. Will TBB deal with this situation in the future ? | |||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
| 8439 users have contributed to 31542 threads and 100364 posts to date. |
|---|
| In the past 24 hours, we have 11 new thread(s) 33 new posts(s), and 45 new user(s). In the past 3 days, the most popular thread for everyone has been /fpp interferes with breakpoints/stepping through code - again The most posts were made to IVF 11.1.051 freezes during build The post with the most views is Quoting - dannycat When I Please welcome our newest member obi_1 |