Re: Crash on qcop call to IrDA applet

Dmitriy Korovkin <[email protected]> Thu, 08 Feb 2007 22:59:42 +0300
Newsgroups gmane.comp.handhelds.opie.devel
Message-ID <[email protected]>
I can't guarantee that, but I'll try to do my best to see and fix the
problem. IMHO, it should not be overcomplicated.

Dmitriy



Paul Sokolovsky wrote:
> 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
>>     
>
>
>   
_______________________________________________

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

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