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

List:       kde-devel
Subject:    Re: Everthing segfaults!!!
From:       Stephan Kulow <coolo () itm ! mu-luebeck ! de>
Date:       1999-05-25 12:51:04
[Download RAW message or body]

Mosfet wrote:
> 
> On Tue, 25 May 1999, Stephan Kulow wrote:
> > Mosfet wrote:
> > >
> > > On Tue, 25 May 1999, Stephan Kulow wrote:
> > > > Dan Pilone wrote:
> > > > >
> > > > > Previously written in blue crayon:
> > > > >  > Everything segfaults during KApplication constructor.
> > > > >  > Looks like somewhere in KConfig (Preston?).
> > > > >  > The silence worries me - I'm not alone here am I?
> > > > >
> > > > >         No, you're not alone.  That's the problem I'm having with
> > > > > running KDE 2.0 on IRIX.  Here's what I got.. (thanks to Stephan's
> > > > > great tip.. :)  )  In KApplication::init() it tries to read some
> > > > > config entries, well, KConfigbase checks to see if the local is set.
> > > > > It's not, so it eventually ends up calling KLocale::KLocale(QString).
> > > > > KLocale then tries to determine the locale, and tries to read some
> > > > > entries from KConfig.. which then initializes KLocale.. ad
> > > > > infinitum.. you end up segfaulting in new() after a little griding and
> > > > > churning.
> > > > >         Should I try and find a fix? -- Dan
> > > >
> > > > My personal believe is that KApplication's constructor shouldn't use
> > > > KConfig. What does it use it for anyway?
> > > >
> > >
> > > Uhm, well color groups and fonts are a good example ;-)
> > >
> > But they are not i18ned, right?
> 
> No, but was does that have to do with KApplication not using KConfig?

Well, the current problem is that KApplication creates KConfig (as it
needs
it - a KConfig object for just kderc would be enough, but that's another
story), KConfig creates KLocale (as it needs to know the language) and 
KLocale needs KApplication for the appname. So we've got the circle.

If KApplication would leave KLocale alone until it's created, it would
be
much better.

Greetings, Stephan

-- 
As long as Linux remains a religion of freeware fanatics,
Microsoft have nothing to worry about.  
                       By Michael Surkan, PC Week Online

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

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