Results 1 to 2 of 2

Thread: How can I manage an unexpected program crash?

  1. #1
    Join Date
    Jun 2008
    Location
    Rome, Italy
    Posts
    95
    Thanks
    19
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default How can I manage an unexpected program crash?

    Hi to all,
    Should you suggest a way?
    I'm looking for something beyond the use of "try" and "catch", when the crash happens due the OS and escape the conventional C++ tools.
    Thanks.

  2. #2
    Join Date
    Dec 2006
    Posts
    849
    Thanks
    6
    Thanked 162 Times in 151 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How can I manage an unexpected program crash?

    not too much you can do. you might install a signal handler and print a stacktrace.
    you might wrap the eventloop with a try-catch-block so that an (unhandled) exception during event handling won't crash your app but only terminate that event. (Of course you need to write exception safe code.)

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

    cydside (22nd August 2009)

Similar Threads

  1. Replies: 4
    Last Post: 24th July 2009, 08:48
  2. program crash on signalMapping QList
    By wagmare in forum Qt Programming
    Replies: 4
    Last Post: 22nd July 2009, 16:23
  3. Program Crash
    By jonmatteo in forum Qt Programming
    Replies: 5
    Last Post: 17th June 2009, 14:47
  4. Program crash when a signal is emitted
    By croscato in forum Qt Programming
    Replies: 7
    Last Post: 22nd November 2008, 22:24
  5. QT MySQL
    By sabeeshcs in forum Newbie
    Replies: 6
    Last Post: 12th January 2007, 04:19

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.