From kde-devel Mon Jul 30 18:56:08 2001 From: Uwe Thiem Date: Mon, 30 Jul 2001 18:56:08 +0000 To: kde-devel Subject: Re: reason behind fno-exceptions? X-MARC-Message: https://marc.info/?l=kde-devel&m=99651961005841 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 <<