On Thursday 08 January 2009, Petri Damstén wrote: > Hi, > > If i try to do KIO::NetAccess::download or KIO::NetAccess::synchronousRun > in a runner I get a crash. I can't figure out how should I download data > from the net in runners?
well, for one, these downloads will need to be fast to be useful to the user, or we'll need to provide for a really "slow boat" for these kinds of runners (e.g. don't launch them during typing, but only after typing ceases for a period of time or upon some other user generated signal) > #0 0x00007f38f0fdc50f in KIO::TransferJob::sendAsyncData (this=0x15fbf00, > dataforsla...@0x43195ec0) > at /home/damu/Development/src/kdelibs/kio/kio/job.cpp:1028 i'll wager that kio isn't thread safe ;) if you put a shared (e.g. class static) mutex in your runner that wraps the KIO usage, does it then work? -- Aaron J. Seigo humru othro a kohnu se GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43 KDE core developer sponsored by Qt Software
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel