Results 1 to 8 of 8

Thread: threaded server for multiple clients writing to the client only first time

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2010
    Location
    Bangalore, India.
    Posts
    28
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default threaded server for multiple clients writing to the client only first time

    Hello

    I am writing the Threaded server where I can connect multiple clients, my server has DB(SQLite) connection.
    Working: 1. First time whatever Server has written to the socket, Client is reading.
    2. Server is reading whatever the client has written
    Not Working: 1 As soon as i connect client to the Server, Message at server:
    "QObject: Cannot create children for a parent that is in a different thread.
    (Parent is FortuneThread(0x23bb7a0), parent's thread is QThread(0x1b166a0), current thread is FortuneThread(0x23bb7a0)"
    2 Second time onwards whatever the server is writing client is not able to read.

    what is wrong with the server code.. i feel no problem with the client , as it worked as desired with the Server without thread please guide..

    Thanks
    Last edited by meena; 7th May 2010 at 12:07.

Similar Threads

  1. Replies: 4
    Last Post: 30th November 2010, 21:09
  2. Extend QTcpServer to handle multiple clients
    By DiamonDogX in forum Qt Programming
    Replies: 5
    Last Post: 24th February 2010, 19:49
  3. Multi Threaded Client Server application
    By live_07 in forum Qt Programming
    Replies: 0
    Last Post: 27th August 2009, 16:32
  4. Threaded TCP server
    By Sysace in forum Newbie
    Replies: 4
    Last Post: 21st February 2008, 12:37
  5. Threaded server.
    By nithinin2001 in forum Qt Programming
    Replies: 2
    Last Post: 15th November 2007, 16:37

Tags for this Thread

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.