[maemo-developers] [maemo-developers] How to keep app running indefinitely
From: Kalle Valo Kalle.Valo at nokia.comDate: Fri Mar 31 17:26:25 EEST 2006
- Previous message: [maemo-developers] How to keep app running indefinitely
- Next message: [maemo-developers] How to keep app running indefinitely
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Steven Hill" <steveh at shscientific.com> writes: >> 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... It helped, I think I found the problem. It's here: void iap_callback(struct iap_event_t *event, void *arg) { AppContext* ctxt = ((AppData*)arg)->connection; The application will crash if arg is NULL. And for some reason libossoic sends arg as NULL in certain cases (I checked from sources). To avoid this bug, it's better to not use arg parameter at all and provide the context by some other means, for example in a modules's private variable. Sorry for a late answer, I was on a vacation. -- Kalle Valo
- Previous message: [maemo-developers] How to keep app running indefinitely
- Next message: [maemo-developers] How to keep app running indefinitely
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]