[Qt-interest] Qt and exceptions
Stephan Rose
kermos at somrek.net
Thu Dec 11 14:58:41 CET 2008
On Thu, 2008-12-11 at 08:35 +0100, Thiago Macieira wrote:
> 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.
That sounds exactly like what I'm looking for. Thanks Thiago,
appreciated!
Stephan
More information about the Qt-interest-old
mailing list