PDA

View Full Version : qt4.5, assert in timer event doesnt stop all timers



roybj
2nd May 2011, 07:22
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.

wysota
4th May 2011, 12:22
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.