C++ Exceptions in Amarok
Mark Kretschmann
kretschmann at kde.org
Wed Nov 4 10:07:32 CET 2009
Ahoy,
Leo and I were pondering how to fix crashes with Liblastfm, stemming
from the fact that the library is throwing exceptions. As all KDE
applications are built _without_ exceptions support by default (for
historical reasons), this crashed instantly at every throw(). So I've
enabled exceptions support in Amarok, and I'm attaching a patch that
proves that it works. With the patch, Amarok will show a small message
box on startup, when the exception gets caught.
There is one catch (haha, pun!):
As Qt is compiled without exceptions support, this will not work with
any Qt types (e.g. throwing a QString). Not sure if that poses a
problem for our Liblastfm endeavours.
--
Mark Kretschmann
Amarok Developer
www.kde.org - amarok.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: exceptions_test.diff
Type: application/octet-stream
Size: 675 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/amarok-devel/attachments/20091104/b01c81d8/attachment-0001.dll
More information about the Amarok-devel
mailing list