[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: reason behind fno-exceptions?
From:       Uwe Thiem <uwe () uwix ! alt ! na>
Date:       2001-07-30 18:56:08
[Download RAW message or body]

On Mon, 30 Jul 2001, Waldo Bastian wrote:

> On Monday 30 July 2001 10:08 am, TAnGorN (Anatoli Gorchetchnikov) wrote:
> > Hi!
> >
> > What is it? I'd love to catch couple of exceptions my core library
> > (non-kde/qt) throws and let user handle it through interface of my
> > kde app. What problems can it cause?
> 
> Exception handling causes huge overhead, it caused an overhead of about 1Mb / 
> process for KDE applications when I last measured it (about a year ago). I 
> don't think this has changed much with gcc 3.0.
> 
> You can use exceptions in your own code though, as long as you don't throw 
> any exceptions through Qt or KDE code. (Watch out for signals/slots)
> 
> Your application will crash or abort when you attempt to throw a signal 
> through Qt or KDE code (when it is compiled with -fno-exceptions)

Hmm ... slots are just element functions, aren't they?

Uwe

-------------------------------------------------------------------------
Uwe Thiem                                        Tel:  +264 - 61 - 249249
P.O.Box 30955                                    Email:   uwe@uwix.alt.na
Windhoek                                                      uwe@kde.org
Republic of Namibia                                    http://www.kde.org
                  **********************************
   In the desert there is no sign that says, Thou shalt not eat stones.
-------------------------------------------------------------------------



 
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic