[Interest] App. is running after an exception is thrown.
Thiago Macieira
thiago.macieira at intel.com
Fri Jul 26 21:28:19 CEST 2013
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130726/fe4f05e5/attachment.sig>
More information about the Interest
mailing list