Results 1 to 10 of 10

Thread: QTcpSocket::connectToHost() is blocking the GUI!

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2006
    Location
    Mexico City
    Posts
    31
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default Re: QTcpSocket::connectToHost() is blocking the GUI!

    Hi jackmack.

    I tried to reproduced the error that you get when using fortune client, and it worked ok in my system. No blocking, and no endless loop. Even when I used another non existing IP, the window can be moved around, until the apperance of the error in connection message.

    I'm using Qt 4.7.0, and win32-g++ with minGW. Maybe the problem is when using VS2008.

    Hope this helps.

  2. #2
    Join Date
    Jun 2010
    Posts
    31
    Qt products
    Qt4
    Platforms
    Windows
    Thanked 1 Time in 1 Post

    Default Re: QTcpSocket::connectToHost() is blocking the GUI!

    Hi,

    wow, that's strange.
    I will try it also again with the Qt intergrated IDE. I think this is the fastest way to test it.

    Thanks a lot.

  3. #3
    Join Date
    Jun 2010
    Posts
    31
    Qt products
    Qt4
    Platforms
    Windows
    Thanked 1 Time in 1 Post

    Default Re: QTcpSocket::connectToHost() is blocking the GUI!

    Quote Originally Posted by arnaiz View Post
    Hi jackmack.

    I tried to reproduced the error that you get when using fortune client, and it worked ok in my system. No blocking, and no endless loop. Even when I used another non existing IP, the window can be moved around, until the apperance of the error in connection message.

    I'm using Qt 4.7.0, and win32-g++ with minGW. Maybe the problem is when using VS2008.

    Hope this helps.
    Hi Arnaiz,

    I have installed also the Qt 4.7.0 with minGW and the result is strange!

    Running the fortuneclient on clean VM system (64 bit) -> non blocking!
    Running the fortuneclient on clean VM host system (64 bit) -> non blocking!
    Running the fortuneclient on a clean windows XP system (PC 32bit) -> non blocking!
    Running the fortuneclient on my develop system (laptop 32bit) -> it's blocking!
    Running the fortuneclient on my old develop system (laptop 32bit) -> it's blocking!

    On my old development system I have uninstalled the Microsoft VisualC++ IDE and the Web'n Walk drivers for UMTS access.
    NOW IT WORKS! NO BLOCKING OCCURS! That's strange.

Similar Threads

  1. Blocking QTcpSocket for read/write operations
    By vcernobai in forum Qt Programming
    Replies: 3
    Last Post: 15th June 2020, 09:43
  2. QTcpSocket::connectToHost
    By yogeshgokul in forum Qt Programming
    Replies: 18
    Last Post: 7th July 2009, 11:42
  3. Timing out a QFtp ConnectToHost
    By skp in forum Qt Programming
    Replies: 10
    Last Post: 27th April 2008, 14:10
  4. QUdpSocket bind / connectToHost ?
    By mnemonic_fx in forum Newbie
    Replies: 2
    Last Post: 17th July 2007, 04:20
  5. QTcpSocket connectToHost memory leak?
    By Lele in forum Qt Programming
    Replies: 9
    Last Post: 6th March 2006, 10:26

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.