[Qt-interest] How to handle exceptions in Qt
Thiago Macieira
thiago at kde.org
Wed Dec 16 23:39:46 CET 2009
Em Quarta-feira 16. Dezembro 2009, às 18.30.27, Santhosh Y escreveu:
> Hi Andreas,
>
> I understand that only Signal handler can only catch such kind of
> exceptions.
>
> But before being caught by signal handlers I want to cleanup () my object.
>
> Can I do such kind of things?
No, that's not how Unix signals work.
I think that Windows does have an exception mechanism that can be caught by
catch (...). Most people who use exceptions don't like that behaviour because
it breaks exception handling.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091216/8c14729e/attachment.bin
More information about the Qt-interest-old
mailing list