[maemo-developers] [maemo-developers] How to keep app running indefinitely

From: Steven Hill steveh at shscientific.com
Date: Tue Mar 14 20:30:51 EET 2006
On Tue, 2006-14-03 at 09:04 +0200, Kalle Valo wrote: 
> "Steven Hill" <steveh at shscientific.com> writes:
> 
> >> Good. But actually disabling the idle timer is just a workaround. It
> >> seems that the real problem is the application crashing whenever a
> >> disconnect from a network happens.
> >
> > I agree, but it is not clear what is happening. The messages I am seeing
> > from my application are:
> >
> > Received status_changed to DISCONNECTING notification for IAP shss
> > Received status_changed to IDLE for IAP shss
> > Segmentation fault
> >
> > The OSSO_IAP_DISCONNECTED event in the iap_callback function does not
> > appear to be reached, because it should print a brief message on entry.
> 
> Ok, so this points to a bug in libosso-ic.so (the library providing
> the IC API) and I'll have to investigate this more. Can you give any
> instructions how to reproduce it? I haven't seen this before so I
> suspect there's something special needed for triggering this bug. What
> 770 software version are you using?
> 
> > Do you know where the status_changed messages are being generated?
> 
> It's printed from libosso-ic.so. To be precise from src/ic-api.c line 104
> which is in debian source package osso-ic-oss.
> 
I am running this app on (I believe) the most recent production version
of the 770 (downloaded and installed using the Windows flasher -
according to the Device information it is 3.2005.51-13.
I have attached my network.c file and two header files.  The connection
code is based on the osso-ic example with a few changes and additions.
Network connection is made with a call to get_connected.  Let me know if
this helps...

Steve Hill
-------------- next part --------------
A non-text attachment was scrubbed...
Name: appdata.h
Type: text/x-chdr
Size: 3288 bytes
Desc: not available
Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20060314/df2ee949/attachment.h 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: network.c
Type: text/x-csrc
Size: 10503 bytes
Desc: not available
Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20060314/df2ee949/attachment.c 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: network.h
Type: text/x-chdr
Size: 805 bytes
Desc: not available
Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20060314/df2ee949/attachment-0001.h 
More information about the maemo-developers mailing list