From kde-devel Thu Nov 24 16:57:02 2005 From: Kevin Krammer Date: Thu, 24 Nov 2005 16:57:02 +0000 To: kde-devel Subject: Re: KTrader::self()->query always results in a Segmentation Fault Message-Id: <200511241757.09894.kevin.krammer () gmx ! at> X-MARC-Message: https://marc.info/?l=kde-devel&m=113285152717890 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============1815674510==" --===============1815674510== Content-Type: multipart/signed; boundary="nextPart1933630.azsQL86oeT"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1933630.azsQL86oeT Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 24 November 2005 17:04, Roberto Cappuccio wrote: > Hi there, > > I'm trying to create some unit tests for Kat. > In our Kat::Engine class we have a method that calls: > > KTrader::OfferList stores =3D KTrader::self()->query( "kat/QueryStor= e" > ); > > It works when invoked by the application. > It always results in a Segmentation Fault when called by the test > framework. > > Is there something I should know? > Does KTrader need to be called from within a QApplication? KDE classes that work on (global) configuration data usually need a KInstan= ce=20 instance to work on, but it often doesn't have to be a KApplication instanc= e. Cheers, Kevin =2D-=20 Kevin Krammer Qt/KDE Developer, Debian User Moderator: www.mrunix.de (German), www.qtforum.org --nextPart1933630.azsQL86oeT Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBDhfDlnKMhG6pzZJIRAvZTAJ9VSA52XSeKJYmCbXp8AACEbnORUwCfWQSH dgrsZKTlJcaSjky0CT8qp5s= =TDbt -----END PGP SIGNATURE----- --nextPart1933630.azsQL86oeT-- --===============1815674510== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============1815674510==--