Results 1 to 2 of 2

Thread: qt4.5, assert in timer event doesnt stop all timers

  1. #1
    Join Date
    May 2010
    Posts
    3
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default qt4.5, assert in timer event doesnt stop all timers

    hi,
    I have a qt4.5 application built with visual studio 2005 whice has several
    timer events (lets say 2).
    if an assert is called in one timer, the other timer
    keep getting called, and therefore the application is
    Still running.
    What I would like to achive is an assert which causes the
    entire App to stop.
    I used vs' assert but calling qassert or qfatal behaves the same.

    What is the correct way of achieving this?

    Thanks, Roy.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: qt4.5, assert in timer event doesnt stop all timers

    Asserts work only in debug mode and they abort the application immediately. Verify that you are indeed building in debug mode. qFatal() should work regardless of the compilation mode. Verify it actually gets called.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Timer doesn't stop
    By smoon in forum Qt Programming
    Replies: 5
    Last Post: 11th June 2012, 16:08
  2. Replies: 3
    Last Post: 24th April 2011, 16:35
  3. Timer event & paint event, priority
    By Teuniz in forum Qt Programming
    Replies: 0
    Last Post: 2nd February 2010, 13:33
  4. Program freeze when timer->stop();
    By gQt in forum Qt Programming
    Replies: 2
    Last Post: 8th January 2009, 14:05
  5. How to stop event loop of QDialog in Qt4
    By node_ex in forum Qt Programming
    Replies: 3
    Last Post: 8th July 2008, 07:19

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.