[Qt-interest] Qt and exceptions
Thiago Macieira
thiago.macieira at trolltech.com
Thu Dec 11 08:35:24 CET 2008
Stephan Rose wrote:
>So for that reason I'm having it throw an exception so that any and all
>further code execution stops, an error report can be generated and the
>app restarted.
>
>If QT provides a better mechanism for something like this that I have
>overlooked then I'd be more than happy to use it.
If you want a full stop, you can use qFatal() or even directly call
abort().
That will cause a coredump of your application if your operating system
supports such a feature (and the coredump limit is larger than 0). A core
file will allow you to do post-mortem debugging and and may help you find
out exactly what went wrong.
--
Thiago Macieira - thiago.macieira (AT) nokia.com
Senior Software Engineer - Nokia, Qt Software
Qt Software is hiring - ask me
Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20081211/d19a7e78/attachment.bin
More information about the Qt-interest-old
mailing list