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

List:       kde-devel
Subject:    KConfig Error
From:       Sarath Menon <s_menon () users ! sourceforge ! net>
Date:       2004-06-28 19:55:37
Message-ID: 20040628195537.4935.qmail () macho ! wwindia ! com
[Download RAW message or body]

I have been trying to modify a widget engine and had added the following 
code
to its constuctor to check whether kicker is tranparent: 

KConfig kickconfig("kickerrc",true,true,"config");
kickconfig.setGroup("General");
kickerTrans = kickconfig.readBoolEntry("Transparent", false); 

Running one of the sample programs from the qt library, progressbar 
segfaults
and a gdb backtrace gives the following error:
#0  0x40de3002 in KInstance::dirs() const ()
from /opt/kde3/lib/libkdecore.so.4
#1  0x40ddbc42 in KGlobal::dirs() () from /opt/kde3/lib/libkdecore.so.4
#2  0x40d78258 in KConfigBackEnd::changeFileName(QString const&, char 
const*,
bool) () from /opt/kde3/lib/libkdecore.so.4
#3  0x40d78407 in KConfigBackEnd::KConfigBackEnd(KConfigBase*, QString 
const&,
char const*, bool) () from /opt/kde3/lib/libkdecore.so.4
#4  0x40d7555e in KConfig::KConfig(QString const&, bool, bool, char const*) 
()
  from /opt/kde3/lib/libkdecore.so.4
#5  0x40c856e9 in OptionHandler::reloadSettings() (this=0x815f898)
   at liquid.cpp:101
#6  0x40c85100 in OptionHandler (this=0x815f898, parent=0x0) at 
liquid.cpp:53
#7  0x40c86ab2 in LiquidStyle (this=0x8118340) at liquid.cpp:194
#8  0x40c84e96 in LiquidStylePlugin::create(QString const&) (this=0x8169f18,
   s=@0x0) at liquid.cpp:37
#9  0x40600215 in QStylePluginPrivate::create(QString const&) ()
  from /usr/lib/libqt-mt.so.3
#10 0x405ff87e in QStyleFactory::create(QString const&) ()
  from /usr/lib/libqt-mt.so.3
#11 0x40293a6b in QApplication::style() () from /usr/lib/libqt-mt.so.3
#12 0x4032a4f8 in QWidget::style() const () from /usr/lib/libqt-mt.so.3
#13 0x403ac74c in QGroupBox::calculateFrame() () from /usr/lib/libqt-mt.so.3
#14 0x403ab321 in QGroupBox::setTitle(QString const&) ()
  from /usr/lib/libqt-mt.so.3
#15 0x403aaba8 in QGroupBox::QGroupBox(int, Qt::Orientation, QString const&,
QWidget*, char const*) () from /usr/lib/libqt-mt.so.3
#16 0x40386db5 in QButtonGroup::QButtonGroup(int, Qt::Orientation, QString
const&, QWidget*, char const*) () from /usr/lib/libqt-mt.so.3
#17 0x0804c87c in ProgressBar::ProgressBar(QWidget*, char const*) ()
#18 0x0804c1ad in main () 

Can someone tell me what has happened cos IMHO, the code is sufficient?
P.S. Iam not on the list so kindly CC to me in replies.
Sarath Menon
 --
Every man is as God made him, ay, and often worse.
               -- Miguel de Cervantes
 
>> Visit http://mail.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