[Development] Enable Exceptions for Windows CE as default

Hugo Parente Lima hugo.lima at openbossa.org
Wed May 9 16:19:41 CEST 2012


On Wednesday, May 09, 2012 11:30:35 AM lars.knoll at nokia.com wrote:
> On 5/9/12 12:33 PM, "ext Olivier Goffart" <olivier at woboq.com> wrote:
> >On Wednesday 09 May 2012 11:28:30 Giuseppe D'Angelo wrote:
> >> On 9 May 2012 10:22, Olivier Goffart <olivier at woboq.com> wrote:

[snip]
 
> Actually I wonder why we don't compile all of Qt with exceptions disabled
> by default and enable them only for the places they are really needed
> (QtCore for exception safe signal/slot connections etc, and QtXmlPatterns
> because it uses them). Can anybody come up with a good reason not to do
> this?

ArchLinux used to ship a Qt4 compiled without support for exceptions years 
ago, but I remember this caused trouble for me at the time (so can cause for 
other ISV as well) when I was using the QUndoCommand related classes and my 
classes inherited from QUndoCommand could throw exceptions on 
QUndoCommand::redo() if the command fail to execute, so the exception was 
throw by my application code when running Qt code (QUndoStack::push) and 
caused a nice segfault until the packager re-compile the Qt4 package with 
support for exceptions.

> The other option would be to fix the -no-exceptions configure flag to mean
> no exceptions, except where they are really needed.
> 
> Lars

Regards.
Hugo Parente Lima
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120509/c04eff20/attachment.sig>


More information about the Development mailing list