Results 1 to 5 of 5

Thread: QTcpSocket & QTcpServer are mishappen.

  1. #1
    Join Date
    Aug 2010
    Posts
    58
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default QTcpSocket & QTcpServer are mishappen.

    They doesnt work on windows at all, whenever i compile a program containing any of them it gives "name.exe exited with code "some code"" even when i compile there examples.

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: QTcpSocket & QTcpServer are mishappen.

    You need to provide a lot more information to get a correct answer.

    The things you should include is the error code and if possible your source code.

  3. #3
    Join Date
    Aug 2010
    Posts
    58
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QTcpSocket & QTcpServer are mishappen.

    Hi, thanks for the answer, even when i try to compile a simple program like this:
    Qt Code:
    1. #include <QApplication>
    2. #include <QTcpSocket>
    3.  
    4. int main(int argc, char *argv[]) {
    5. QApplication a(argc, argv);
    6. QTcpSocket sock;
    7. sock.connectToHost("irc.quakenet.org", 6667);
    8. return a.exec();
    9. }
    To copy to clipboard, switch view to plain text mode 
    it gave me this:
    test.exe exited with code -1073741515
    using Qt Creator btw
    Last edited by Fallen_; 18th August 2010 at 18:43.

  4. #4
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: QTcpSocket & QTcpServer are mishappen.

    Your program doesn't find a necessary DLL to run.

    Why it even linked in the first place, I don't know.
    Anyway, check if all the needed libraries are accessible from your PATH environment variable.

  5. #5
    Join Date
    Aug 2010
    Posts
    58
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QTcpSocket & QTcpServer are mishappen.

    i reinstalled Qt Creator and it worked, thx

Similar Threads

  1. My server (using QTcpServer and QTcpSocket) crashes
    By supergillis in forum Qt Programming
    Replies: 3
    Last Post: 2nd June 2010, 15:32
  2. QTcpServer - get the correct QTcpSocket
    By elcuco in forum Qt Programming
    Replies: 4
    Last Post: 11th May 2010, 09:49
  3. QTcpServer QTcpSocket problem
    By jmsbc in forum Qt Programming
    Replies: 0
    Last Post: 20th November 2009, 17:42
  4. QTcpSocket, QTcpServer problem
    By frido in forum Qt Programming
    Replies: 3
    Last Post: 3rd April 2009, 23:16
  5. QTcpServer & QTcpSocket questions...
    By jxmot in forum Qt Programming
    Replies: 2
    Last Post: 24th April 2008, 21:38

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.