[Interest] App. is running after an exception is thrown.

Alexander Syvak alexander.svk at gmail.com
Fri Jul 26 21:40:42 CEST 2013


I caught and threw again.


2013/7/26 Thiago Macieira <thiago.macieira at intel.com>

> On sexta-feira, 26 de julho de 2013 20:19:58, Alexander Syvak wrote:
> > after calling w.show() there's method redefined void
> event_dlg::showEvent(
> > QShowEvent *). In this method there's an exception thrown. The process
> does
> > not terminate.
>
> Please consider all event handlers and slots (when called via the
> signal-slot
> mechanism) as nothrow / noexcept. If you throw or fail to catch something,
> it's undefined behaviour.
>
> >From that point on, your application is doomed. It will most likely crash.
> But, as you discovered, it may do something else.
>
> Fix the problem by catching the exception.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel Open Source Technology Center
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130726/e3a671e0/attachment.html>


More information about the Interest mailing list