Results 1 to 5 of 5

Thread: Long hang on application termination

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2012
    Posts
    248
    Thanks
    29
    Thanked 15 Times in 14 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Long hang on application termination

    When i perform certain actions with my program, the program hangs for ~10-15 seconds on termination, at 100% cpu usage.

    The main thread is destrying a custom object (as it should), but appears to have some issues within the destructor of an
    Qt Code:
    1. typedef QMap<quint64, QSet< quint64> > trzf_cache;
    To copy to clipboard, switch view to plain text mode 

    object.

    So the hang happens within Qt-map code.

    Any ideas how any of my code could cause this?


    edit:
    completely rewrote posts with new details.
    Last edited by tuli; 19th April 2013 at 08:50.

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 453 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Long hang on application termination

    When i perform certain actions with my program, the program hangs for ~10-15 seconds on termination, at 100% cpu usage.
    Describe "certain actions".

    So the hang happens within Qt-map code.
    How can you tell that the delay is in QMap code?

    Any ideas how any of my code could cause this?
    That will be a wild guess , unless we see code.
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

Similar Threads

  1. exporting QWS_KEYBOARD=LinuxInput:/dev/input/event0" hang application
    By binaural in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 12th September 2012, 07:03
  2. [Memory managament] long liveliness of application
    By Blood9999 in forum Qt Programming
    Replies: 22
    Last Post: 17th August 2012, 23:22
  3. QSqlDatabase best practices with long-running application
    By redBeard in forum Qt Programming
    Replies: 6
    Last Post: 17th October 2011, 19:32
  4. Wait for socket to connect without application hang?
    By hakermania in forum Qt Programming
    Replies: 5
    Last Post: 9th October 2011, 11:03
  5. Replies: 3
    Last Post: 19th March 2011, 05:02

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.