Important: Please read the Qt Code of Conduct -

Qt and c++ exception again

  • 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?
    Or maybe my own c++ code?

    any help will be greatly appreciated

  • 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...

  • 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.

  • Test Result:

    Hardware: Karo TX28
    OS: Wce6

    No Problems with exception handling!

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

Log in to reply