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

List:       kde-core-devel
Subject:    KIO: Mass Copy of Files from Different Sources to Different
From:       Alejandro Wainzinger <aikawarazuni () gmail ! com>
Date:       2009-06-18 7:55:48
Message-ID: fce735e0906180055x29e800a3q49b36e215833fc8f () mail ! gmail ! com
[Download RAW message or body]

Using KIO::copy( ... ) to generate more than 150 jobs causes the KIO
scheduler to complain:

"WARNING - KIO::Scheduler got more than 150 jobs! This shows a misuse
in your app (yes, a job is a QObject)."

What misuse is this, isn't the KIO::Scheduler supposed to schedule
jobs?  I notice that you can directly tell the scheduler to schedule a
job with KIO::Scheduler::scheduleJob(...) which will queue jobs when
no slaves are left over and possibly avoid this error, but that only
works for SimpleJobs, and a CopyJob is not a SimpleJob.

Up until now I've worked around it by manually keeping track of jobs I
create and jobs that finish so as not to make the Scheduler angry, but
shouldn't this be part of the Scheduler's job?

I notice most applications don't run into this issue because they use
KIO to copy a folder that could contain more than 150 files which is
fine, or copy more than 150 files to a single destination, but in my
case each file I copy can come from a different source and go to a
different destination so I can not aggregate the jobs.
[prev in list] [next in list] [prev in thread] [next in thread] 

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