Results 1 to 7 of 7

Thread: socket in thread error!

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2007
    Posts
    8
    Thanks
    7

    Exclamation socket in thread error!

    Dear everybody!

    now I'm using socket in thread!

    in the thread:
    //////////////////

    if (!tcpSocket.setSocketDescriptor(socketDescriptor))
    {
    emit error(tcpSocket.error());
    return;
    }

    tcpSocket.waitForReadyRead();

    QByteArray Mark = tcpSocket.read(10);

    //////////////////
    when the program was ran the error is reported!

    cannot send events to objects owned by a different thread!

    when I remove the "tcpSocket.waitForReadyRead();",the error isn't appear,but I cannot get any data form socket!
    Attached Images Attached Images

Similar Threads

  1. Error compiling psql plugin
    By vieraci in forum Installation and Deployment
    Replies: 4
    Last Post: 7th October 2007, 02:49
  2. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 06:13
  3. qt 4.2.2 install on aix
    By try to remember in forum Installation and Deployment
    Replies: 2
    Last Post: 28th March 2007, 12:19
  4. Qt-x11-commercial-src-4.2.0-snapshot-20060824 error
    By DevObject in forum Installation and Deployment
    Replies: 4
    Last Post: 24th August 2006, 23:31
  5. use qpsql
    By raphaelf in forum Installation and Deployment
    Replies: 34
    Last Post: 22nd August 2006, 12:52

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
  •  
Qt is a trademark of The Qt Company.