Results 1 to 2 of 2

Thread: Sql error comming from nowhere

  1. #1
    Join Date
    Sep 2015
    Posts
    23
    Thanks
    1

    Default Sql error comming from nowhere

    I have a client connected to a server, and it is also connected to a Sqlite3 database. When I receive a message from the server a get an QMessageBox showing an error "No query Unable to fetch row".
    I tried it with qDebug() outputs and by Debugging the application but the message is not produced by me nor thrown by any DB execution, since none is executed at the moment when I get the message.
    I tried it with to debug everything and I found out that even before the 'readyRead()' from an incomming message is even called from the socket connection to the server I receive the error message!?
    Does anyone know how I figure out where it comes from?

  2. #2
    Join Date
    Sep 2015
    Posts
    23
    Thanks
    1

    Default Re: Sql error comming from nowhere

    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:

    Qt Code:
    1. void ConnectionHandler::sendBytes(QByteArray bytes) {
    2. QMessageBox::critical(0, "test", "test");
    3. this->socket->write(bytes);
    4. this->socket->flush(); // after this call the error message is shown
    5. this->socket->waitForBytesWritten();
    6. QMessageBox::critical(0, "test2", "test2");
    7. }
    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

Similar Threads

  1. Replies: 3
    Last Post: 19th November 2014, 19:44
  2. Replies: 4
    Last Post: 29th April 2014, 16:20
  3. Scroll bars in scroll area not comming in scroll area
    By aurora in forum Qt Programming
    Replies: 3
    Last Post: 4th January 2012, 06:50
  4. Scroll bars in scroll area not comming
    By aurora in forum Qt Programming
    Replies: 3
    Last Post: 27th December 2011, 19:56
  5. : error: [\NokiaQtSDK\Symbian\SDK\epoc32\release\gcce\udeb\V ideo.exe] Error 1
    By ranjit.kadam in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 1st May 2011, 22:11

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.