Results 1 to 2 of 2

Thread: Tcp data received by server is duplicated in release mode (but not debug mode)

  1. #1
    Join Date
    Oct 2009
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Tcp data received by server is duplicated in release mode (but not debug mode)

    On Windows (XP) using Qt 4.5 with Visual Studio 2005, I'm implementing a simple Tcp server (using TcpServer) and client (using TcpSocket). It works fine in Debug mode, but in Release mode, the data received by the server is repeated, IE, when the client sends 'xyz' the server receives 'xyzxyz' via a single readAll(). Any tips? Is this a Qt issue, or some system socket issue? At the moment both the client and server are running on the same machine.

  2. #2
    Join Date
    Oct 2009
    Posts
    37
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Re: Tcp data received by server is duplicated in release mode (but not debug mode)

    Do you have a very very minimal example code that reproduces this? I am 99% sure the error is in your code, as this sounds really strange and would have been discovered a lot earlier if it was in Qt.
    Disclaimer: Although I work on Qt for Nokia, anything I post here is personal

Similar Threads

  1. Difference between Debug and Release Mode
    By sunil.thaha in forum Qt Programming
    Replies: 2
    Last Post: 5th May 2013, 13:31
  2. Replies: 9
    Last Post: 15th April 2009, 06:23

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.