Results 1 to 3 of 3

Thread: QTcpServer::waitForNewConnection question/problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Norway
    Posts
    124
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 38 Times in 30 Posts

    Default Re: QTcpServer::waitForNewConnection question/problem

    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
    Bitto / Andreas Aardal Hanssen - andreas dot aardal dot hanssen at nokia
    Nokia Software Manager, Qt Development

  2. The following user says thank you to Bitto for this useful post:

    khaake (22nd February 2007)

  3. #2
    Join Date
    Feb 2007
    Posts
    2
    Thanks
    2

    Red face Re: QTcpServer::waitForNewConnection question/problem

    Thanks Bitto.

Similar Threads

  1. Plugins question/problem
    By Royceybaby in forum Qt Programming
    Replies: 1
    Last Post: 10th October 2006, 15:45

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.