Results 1 to 4 of 4

Thread: Exceptions / setjmp/longjmp question

  1. #1
    Join Date
    Jan 2008
    Posts
    25
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Cool Exceptions / setjmp/longjmp question

    Hi,

    I have two questions, but need only 1 answer

    Question A: Is it possible (and if yes, how) to use exceptions in a Qt4 app AND do not have the mingwm10.dll dependency (My app is compiled as statically as possible)
    Question B: Do setjmp and longjmp mess Qt up? (I've come up with a way to destruct objects when I longjmp out of a function, so this is not a problem)

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    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: Exceptions / setjmp/longjmp question

    Quote Originally Posted by Aceman2000 View Post
    Question A: Is it possible (and if yes, how) to use exceptions in a Qt4 app AND do not have the mingwm10.dll dependency (My app is compiled as statically as possible)
    Yes.

    Question B: Do setjmp and longjmp mess Qt up? (I've come up with a way to destruct objects when I longjmp out of a function, so this is not a problem)
    Why would they? Qt is just another set of C++ libraries, nothing more, nothing less. Everything that applies to C++ applies to Qt as well.

  3. The following user says thank you to wysota for this useful post:

    Aceman2000 (13th March 2008)

  4. #3
    Join Date
    Jan 2008
    Posts
    25
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Smile Re: Exceptions / setjmp/longjmp question

    Thank you. By the way, could you answer the 'how' part of question A?

  5. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    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: Exceptions / setjmp/longjmp question

    Just use them.

Similar Threads

  1. Exceptions and qApp->processEvents()
    By mcostalba in forum Qt Programming
    Replies: 3
    Last Post: 8th January 2006, 17:06

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.