I am using tbb2.1. When I am trying to "clear" the queue, I am getting an assertion saying that "Assertion my_rep->array[i].head_page==tp failed on line 653 of file ../src/tbb/concurrent_queue.cpp. Detailed description : at most one page should remain."
I am using debug libraries i.e. tbb_debug & tbbmalloc_debug.
iq.clear(); //Asserts here.
Thanks in advance.