Hi My TBB program gives "thread_monitor invalid argument" error. When I do task_scheduler_init, I did't pass any argument then the thread number: It looks like: tbb::task_schedule_init init(num_threads);
What could the problem be? Please give me some suggestion.
Check if the num_threads has realistic value (>0 and not too much). If you state it's valueto 2 or 4 - is there the problem? If it is, please provide a code sample so I can try to get the error on my side. Also, what tbb version do you use?
There is a known source of this problem: if you compile your code with one of recent TBB 3.0 updates but use an olderTBB runtime library (maybe accidentally). Check if this is the case, and make sure an appropriate library is used at runtime.