Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt and c++ exception again
Forum Updated to NodeBB v4.3 + New Features

Qt and c++ exception again

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 2 Posters 2.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.
  • Q Offline
    Q Offline
    qnik
    wrote on last edited by
    #1

    Hello everyone.
    I have a multi plattform project. I'm throwing exceptions in event handlers and catch them in QApplication::notify (overwrite) without any problem on x86, and ARM platforms.
    But with the latest constelation ( Karo TX28, WeC7 ) the exceptions are never caught in notify, when the compiler optimization is turned on. The same binaries work well on Karo TX25, Wce6.

    Where is the problem?
    Hardware?
    Compiler?
    OS?
    Or maybe my own c++ code?

    any help will be greatly appreciated

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      IIRC you should not throw exceptions in event handers. Qt is not build for that.
      Did you build Qt with exception handling support? That coul be one reason for the different behavior...

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        qnik
        wrote on last edited by
        #3

        I build Qt with exception handling disabled and optimization MaxSpeed. It works on all plattforms except on wec7.
        Qt build with exception handling disabled and optimization disabled works on wec7 too.

        The next I'm goining to test is, Wce6 (instead of Wec7) on the Karo TX28.

        Thanks for your input.

        1 Reply Last reply
        0
        • Q Offline
          Q Offline
          qnik
          wrote on last edited by
          #4

          Test Result:

          Hardware: Karo TX28
          OS: Wce6

          No Problems with exception handling!

          It seems that these problems have something to do with Wec7.

          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