Re: Crash on qcop call to IrDA applet

Paul Sokolovsky <[email protected]> Wed, 7 Feb 2007 14:32:34 +0200
Newsgroups gmane.comp.handhelds.opie.devel
Message-ID <[email protected]>
Hello Paul,

Wednesday, February 7, 2007, 2:09:09 PM, you wrote:

> Hi there,

> I'm trying to get Opie-remote to disable IrDA using a QCop call to the IrDA
> applet. However, when I run the following with IrDA enabled, Opie-Remote
> segfaults:

> QCopEnvelope e("QPE/IrDaApplet", "disableIrda()");

> If IrDA is disabled when this is called then it does not crash.

> Any ideas?

> On a slightly related note, it would be nice if there was an additional QCop
> function in the IrDA applet to disable IrDA regardless of the previous state,
> since from looking at the code, disableIrda() is designed not to disable IrDA
> if enableIrda() was previously called when it was already enabled.

  Not sure this is good idea. Or rather, such call might be there, but
I couldn't make up a user story for it. Instead, there indeed
would better be reference counting for most services. This is
exactly what's lacking in WinCE. For example, I keep BT off most of
the time, but when I want to send SMS to mobile, I of course want  it
to automatically turn on, send SMS, and then off again. On the other
hand, if I keep it always on (for example, to receive stuff), I don't
want SMS send app to turn BT off.

  This all is trivially handled by reference counting. I'm not sure on what
level this should be done, but am sure that's how it should work
ideally ;-)

> Cheers,
> Paul


-- 
Best regards,
 Paul                            mailto:[email protected]

_______________________________________________

http://opie.handhelds.org/cgi-bin/moin.cgi/DeveloperWikiIndex

Opie-devel mailing list
[email protected]
https://handhelds.org/mailman/listinfo/opie-devel