PDA

View Full Version : QWaitCondition: Destroyed while threads are still waiting on application exit



maitai
10th December 2014, 09:10
Hello,

I have the following warning 5 times in the console each time I exit qt application:

QWaitCondition: Destroyed while threads are still waiting

Every thing works has expected, so I am just wondering why I get this message and how I can get rid of it (and to be honest a bit afraid that maybe something is hanging in memory while application is running).

The point is that I have this message exactly 5 times each time I exit my application. The only thing I am using is QtConcurrent::blockingMapped(), which is treating a QList with 4 items. And indeed if I remove the call to blockingMap(), I ends up with only one warning instead of five when exiting... no idea from where this last message is coming from...

I am using qt5.3.2 on windows 7.

I am expecting QtConcurrent::blockingMapped() to manage the threads and terminate them all automatically... Am I wrong and do I need to do something more?

wysota
10th December 2014, 09:59
Show us the related code, please.