mhoover (25th August 2009)
Thanks again, everyone for your help.
This solved the problem:
Qt Code:
UDPThread::~UDPThread() { exit(); while( this->isRunning() == true ) { } }To copy to clipboard, switch view to plain text mode
My assumption was exit() didn't return until the thread was finished running, but it keeps going.
It looks like exit() stops the event loop and then stops the run() a bit later.
Last edited by mhoover; 25th August 2009 at 22:34.
try to use "native" methods of QThreadQt Code:
UDPThread::~UDPThread() { if (isRunning()) { quit(); wait(); } }To copy to clipboard, switch view to plain text mode
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
Oh, right.
I was trying to use the intellisense thing to quickly see what methods were available.
I will change it.
Bookmarks