Registered Member
|
Hi. When I run the following in a loop every 5 seconds, I end up with a problem after 3 - 5 iterations.
DCOPRef m_hdl("amarok", "player"); if(m_hdl.isNull()) return false; DCOPReply reply = m_hdl.call("isPlaying"); m_hdl.clear(); if(!reply.isValid() || reply.type != "bool") return false; bool b = reply; return b; I get an application message of "Very strange! got a DCOPReply Failed opcode, but we were not waiting for a reply!" which seems to be from dcopclient.cpp My code then hangs on the m_hdl.call() and never returns from it. I'm using KDE 3.5.9 on Mandriva 2008 Anyone know what's going on and/or how to fix it please? Thanks Kitecraft |
Registered Member
|
Well, at least no-one told me to just upgrade
I've tried the same routine with other DCOP services and always hit the same problem. Am I just doing this is some fundamentally wrong way? Thanks |
Administrator
|
The reason for the lack of replies is that many users have upgraded to KDE 4 which uses D-Bus instead of DCOP. This is likely a restriction in DCOP, or a bug. Either of which are unlikely to ever be removed, as KDE 3.5 will not be having any further releases.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
KDE Developer
|
Just a general question: since you currently use polling, have you checked whether the service doesn't signal state changes?
If you really need to work around using polling, maybe keeping the reference and not continuously destroying and recreating it might help. Cheers, _
anda_skoa, proud to be a member of KDE forums since 2008-Oct.
|
Registered Member
|
re: have you checked whether the service doesn't signal state changes?
Hmmmm, hadn't thought of that. Will check. Thanks. re: maybe keeping the reference and not continuously destroying and recreating it might help. That's actually what I started with. But once I hit this problem, I just went down to the simplest thing I could think of as the reproducible test case. re: The reason for the lack of replies is that many users have upgraded to KDE 4... Yeah, I figured that. I actually spent some time on the weekend installing various OS's and checking it out. I just really like my current system. A lot!! But, there are other things I want to do as well and QT4 has some good solutions not available in QT3. I appreciate your responses. Cheers, T. |
Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]