Ok I figured out that the error is shown when I write something to the socket. The error does not affect anything, the program continues to run. Here is the code piece were the error is shown:
void ConnectionHandler
::sendBytes(QByteArray bytes
) { this->socket->write(bytes);
this->socket->flush(); // after this call the error message is shown
this->socket->waitForBytesWritten();
}
void ConnectionHandler::sendBytes(QByteArray bytes) {
QMessageBox::critical(0, "test", "test");
this->socket->write(bytes);
this->socket->flush(); // after this call the error message is shown
this->socket->waitForBytesWritten();
QMessageBox::critical(0, "test2", "test2");
}
To copy to clipboard, switch view to plain text mode
I checked the bytes that are supposed to be written but they look like what they are supposed to!?
This is the error:
Screenshot from 2015-10-22 14:26:56.png
Bookmarks