Results 1 to 18 of 18

Thread: TCP Socket not connecting on Release

Hybrid View

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

    Wink Re: TCP Socket not connecting on Release

    Ã’scar, I'm sure everybody would like to help, but if you want an accurate answer, you will have to isolate your problem, and post a standalone compilable example that shows the bug.

    Usually differences in behavior between debug and release in networking code are caused by either

    1) Timing problems (i.e., race conditions)
    * the order of packet arrival affects you program's logics

    2) Network packet fragmentation (i.e., partial packet arrival)
    * the size of packets received affects your program's behavior

    3) Compiler bugs
    * _usually_ triggered by complex code, try simplifying

    Generally though I'd try to simplify and simplify your code until you have something that's still broken, but can be posted to this forum for review :-).
    Bitto / Andreas Aardal Hanssen - andreas dot aardal dot hanssen at nokia
    Nokia Software Manager, Qt Development

  2. #2
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: TCP Socket not connecting on Release

    Hi,

    1) Timing problems (i.e., race conditions)
    * the order of packet arrival affects you program's logics
    Really do you thing that I do different things on Debug and on Release?

    2) Network packet fragmentation (i.e., partial packet arrival)
    * the size of packets received affects your program's behavior
    The packet size is as maximum 20 bytes long. Dou you really thing that it is packed on different little packages? But, when Debugging the packages that I recive are ok.

    3) Compiler bugs
    * _usually_ triggered by complex code, try simplifying
    Simply I can't.

    Will try to reproduce the problem.
    Òscar Llarch i Galán

Similar Threads

  1. Socket not connecting
    By ComaWhite in forum Qt Programming
    Replies: 14
    Last Post: 11th March 2008, 02:55
  2. Greenphone mini USB socket problem
    By izico in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 25th September 2007, 11:59

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.