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

List:       kde-devel
Subject:    Re: KTrader::self()->query always results in a Segmentation Fault
From:       Kevin Krammer <kevin.krammer () gmx ! at>
Date:       2005-11-24 16:57:02
Message-ID: 200511241757.09894.kevin.krammer () gmx ! at
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


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 = KTrader::self()->query( "kat/QueryStore"
> );
>
> 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 KInstance 
instance to work on, but it often doesn't have to be a KApplication instance.

Cheers,
Kevin

-- 
Kevin Krammer <kevin.krammer@gmx.at>
Qt/KDE Developer, Debian User
Moderator: www.mrunix.de (German), www.qtforum.org

[Attachment #5 (application/pgp-signature)]

>> 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