Results 1 to 6 of 6

Thread: Crash of the Server Application

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Crash of the Server Application

    I will have the many clients.
    That still does not require threads. If the typical response to a connection is short then adding threads probably complicate matters for no benefit.

    QObject: Cannot create children for a parent that is in a different thread.
    (Parent is QThread(0x547258), parent's thread is QThread(0x5416a8), current thread is QThread(0x547258)
    Object::connect: No such slot QThread::sendData() in ../ServerTimer/serverthread.cpp:20
    This is one of those complications.

    Consult the Fortune Server Example and the Threaded Fortune Server examples in Assistant.

  2. The following user says thank you to ChrisW67 for this useful post:

    8Observer8 (3rd September 2013)

  3. #2
    Join Date
    Nov 2012
    Posts
    232
    Thanks
    118
    Thanked 18 Times in 10 Posts
    Platforms
    Windows Android

    Default Re: Crash of the Server Application

    Quote Originally Posted by ChrisW67 View Post
    Consult the Fortune Server Example and the Threaded Fortune Server examples in Assistant.
    Thank you. I need to study about threads:
    - You’re doing it wrong…
    - QThreads General Usage

    I found the solution for my task: C++ Qt 70 Advanced Asynchronous QTcpServer with QThreadPool

Similar Threads

  1. how to avoid crash of my application......
    By newb in forum Qt Programming
    Replies: 1
    Last Post: 30th August 2010, 10:09
  2. application crash problem
    By anshul in forum Newbie
    Replies: 3
    Last Post: 25th December 2009, 12:27
  3. Application crash in Vista
    By yj... in forum Installation and Deployment
    Replies: 1
    Last Post: 5th June 2009, 08:18
  4. Weird application crash
    By MarkoSan in forum Qt Programming
    Replies: 10
    Last Post: 20th May 2008, 14:13
  5. Replies: 5
    Last Post: 24th April 2006, 15:42

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.