You can't call close() from another thread... these classes aren't thread safe. That also means you cannot call it from the QThread's destructor, if the QTcpServer or QTcpSocket was created from inside run().
Check out this doc, it's pretty good reading when you're writing theaded code with Qt.
http://doc.trolltech.com/4.2/threads...ect-reentrancy




Reply With Quote
Bookmarks