Hello,

I have seen many people face a similar problem, but none of the answers solves mine. Below is a complete minimal example that reproduces the problem.

Qt Code:
  1. #include <QtCore/QtConcurrentMap>
  2. #include <vector>
  3.  
  4. void work ( double & d )
  5. {
  6. d = 1.;
  7. return;
  8. }
  9.  
  10. void main ( int argc, char ** argv )
  11. {
  12. std::vector<double> v(500,0.);
  13. QtConcurrent::blockingMap(v.begin(),v.end(),work);
  14.  
  15. return;
  16. }
To copy to clipboard, switch view to plain text mode 

Compiled with Qt 4.8.3 and Visual Studio 2010, the produced executable complains that a QWaitCondition was destroyed while threads were still waiting. What am I doing wrong? Should I upgrade Qt to fix this issue? Is there any workaround in case I can't upgrade right away?

Thank you for the time and support.

Yohann