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

List:       kde-devel
Subject:    Re: KIO::listDir crashes when called from KIO slave
From:       David Faure <faure () kde ! org>
Date:       2005-03-21 10:31:30
Message-ID: 200503211131.31317.faure () kde ! org
[Download RAW message or body]

On Monday 21 March 2005 09:40, Oliver Eichler wrote:
> Hi,
> 
> 
> writing my own KIO slave I would like to use the services provided by the 
> audiocd slave. However my call to KIO::listDir (and any other) forces my 
> slave to die unexpectedly. How can I debug such a situation to provide more 
> information? Is it possible to use the services of one slave within another? 
> I tried the call within a standalone application - no problems. Do I have to 
> add anything to the slave to make it work? 

Use a KApplication instead of a KInstance in kdemain.
See kdebase/kioslave/trash for an example of a slave that creates jobs.

-- 
David Faure, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
 
>> 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