Do a clean build
Do a clean build
When you know how to do it then you may do it wrong.
When you don't know how to do it then it is not that you may do it wrong but you may not do it right.
smemamian (30th March 2013)
very tnx.
but i click on start button :
Extern.gif
I get following errors:
QMutex: destroying locked mutex![]()
Last edited by smemamian; 30th March 2013 at 13:30.
There are only two places that your mutex getting destroyed,
1. at the break
2. at the end of iteration of the loop
You could try to unlock it just before beaking the loop. Anyway the way you are using the mutex is not correct, because you are not considering to get a lock before setting stop attribute true. And you have to use the same mutex object at both places. Just by creating a mutex and lock it will not do anything. So, move mutex object to class attributes and lock it before accessing the stop attribute (in every place in you project) and release it afterward.
Last edited by Maleesh; 30th March 2013 at 14:29.
what is a correct program solution ?
I'm confused..
and i get this message :
QObject::connect: No such slot MainWindow:neNumberChanged() in ..\20\mainwindow.cpp:12
QObject::connect: (receiver name: 'MainWindow')
smemamian (30th March 2013)
I'm using this tutorial,plz look this address :
http://www.youtube.com/watch?v=PR6wV...1942A4688E9D63
c++ Qt 31 - QThread part 4 ...
I got the same error today.
QMutex: destroying locked mutex
Last edited by lunharis; 18th July 2013 at 13:34.
you have to first set the stop parameter false.
Also write in start button clicked like this myThread -> stop =false; and than myThread -> start();
Bookmarks