Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Guys, I desperately need help. This is something which I have never heard of till date.

I have 2 different applications and 2 different devices.

One device is a CDMA and the other device is an UMTS variant.

I have enabled auto-start for both the applications.

On device boot up, auto-start works perfectly for both the applications on the CDMA device.

On the UMTS device, App1 works fine but App2 goes to FreeAppData() immediately on boot up.

The worse part is, if I flash the code using Eclipse (using automatically run on device after flash) on the UMTS variant, both applications work perfectly fine. If I put break points in AEEClsCreateInstance, I do not able to reproduce the problem. I'm not even able to capture logs since the app closes down even before the connection to logger is established. I know that it's going to FreeAppData since I'm throwing log messages on the hyperterminal using IPort1 APIs. 

There's only one log message I see and that is in FreeAppData. I do not see logs in EVT_APP_START too.

The issue arises only when app starts on boot up.

 

Has anyone faced this problem? Is there a solution to this?

 

Is App2 using some services like network,wifi,gps etc? As device is still booting up and some of the services may not be avaialble at this time so if App2 is using some of these services then createinstance of that service may fail resulting in calling freeappdata(). Potential solution may be to put some timer with 30sec in initappdata() and once timer expires then create all resources/services like createinstance.
Hope this helps.

Is App2 using some services like network,wifi,gps etc? As device is still booting up and some of the services may not be avaialble at this time so if App2 is using some of these services then createinstance of that service may fail resulting in calling freeappdata(). Potential solution may be to put some timer with 30sec in initappdata() and once timer expires then create all resources/services like createinstance.
Hope this helps.

Hi Mahesh,
Thanks for the reply.
Yes, App2 is using services like Network, GPS and GPRS.
I put a timer for 30-45 seconds before starting up the application, but still I'm facing the same issue. It's directly going to FreeAppData().
I also tried to just print debug messages using DBGPRINTF, but they are seen only in FreeAppData().
If I run the application through eclipse, it runs perfectly. This problem, surprisingly, arises only on auto-launch. I don't understand how to resolve this problem and fix the issue.
Could it be due to multiple extensions? I'm using 1 app and 4-5 extension modules. There is lot of space available in the EFS too. Do I need to add any dependencies?
 
Thanks,
Varun

Hi Mahesh,
Thanks for the reply.
Yes, App2 is using services like Network, GPS and GPRS.
I put a timer for 30-45 seconds before starting up the application, but still I'm facing the same issue. It's directly going to FreeAppData().
I also tried to just print debug messages using DBGPRINTF, but they are seen only in FreeAppData().
If I run the application through eclipse, it runs perfectly. This problem, surprisingly, arises only on auto-launch. I don't understand how to resolve this problem and fix the issue.
Could it be due to multiple extensions? I'm using 1 app and 4-5 extension modules. There is lot of space available in the EFS too. Do I need to add any dependencies?
 
Thanks,
Varun