Results 1 to 2 of 2

Thread: QWaitCondition: Destroyed while threads are still waiting

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2012
    Posts
    14
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default QWaitCondition: Destroyed while threads are still waiting

    I am using a node.js addon and have extended it with a QWebPage wrapper: https://github.com/arturadib/node-qt

    when I do a QWebPage::load() on exit of the javascript I get the 'QWaitCondition: Destroyed while threads are still waiting' warning displayed on exit of the node instance.

    If I just get the html() for the mainframe(), no issues, only when something that involves the event queue is executed.

    Unfortunately I don't have the skills to figure out the threading issues here. The wrapper works great, I can load pages, get back the html etc, all sweet there.
    But obviously something is not quite right.

    Any whizzes have some ideas? There is a 'setInternval( function() { app.processEvents(); }, 0 )' that obviously wraps up QCoreApplication:rocessEvents to run all the time.

    I've got no idea what thread everything is executed in, it may be different ones.

    Cheers for any assistance in figuring this out.

  2. #2
    Join Date
    Mar 2012
    Posts
    14
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: QWaitCondition: Destroyed while threads are still waiting

    As usual, simplest answer is the right one - hooked up node::AtExit to delete the QCoreApplication::instance() that is created early on.

Similar Threads

  1. Replies: 1
    Last Post: 27th January 2011, 15:02
  2. Replies: 0
    Last Post: 15th April 2010, 13:44
  3. Replies: 0
    Last Post: 27th February 2010, 17:14
  4. Replies: 0
    Last Post: 8th June 2009, 08:12
  5. Waiting for multiple threads
    By Bebee in forum Qt Programming
    Replies: 1
    Last Post: 18th November 2008, 17:21

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
  •  
Qt is a trademark of The Qt Company.