Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Assertion in one timer doesnt stop all timers - is this the expected behavior?
Forum Updated to NodeBB v4.3 + New Features

Assertion in one timer doesnt stop all timers - is this the expected behavior?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    roybj
    wrote on last edited by
    #1

    hi, in my qt application (qt 4.5 written under vs2005) i have many (let say two) timers.
    an assert is called in one of those.
    i expect the entire application to stop, but the other timer(s) keep going!
    this is not good at all since it misses the point of the assertion.
    also if i use some library which uses assert i am in no mans land.
    i am using visual studios assert (from cassert.h) but the same behavior is observed using
    qassert or simply by calling qfatal in one timer.

    what is the best way to avoid this?
    keep in mind that i might be using libraries which calls assert, and then i would like the entire application to halt.

    thanks!

    Roy.

    1 Reply Last reply
    0
    • F Offline
      F Offline
      Franzk
      wrote on last edited by
      #2

      Example code?

      "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved