Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

New Developer
Posts: 57
Registered: ‎08-08-2008
My Device: Not Specified

Unexpected application termination

Hi, we have an application out in the field that terminates unexpectedly.  It is usually at the same point but not always.  It is very random when it happens and no matter how hard we try cannot re-produce in house.  It seems to be mainly on 9360 7.1 devices.


Can anyone offer any help on what causes a webworks app to terminate unexpectedly?  No errors or exceptions (code is in a try / catch) are experienced.



BlackBerry Development Advisor
Posts: 769
Registered: ‎10-01-2009
My Device: All
My Carrier: N/A

Re: Unexpected application termination



Without having much information about the app, the only thing that comes to mind is perhaps something is happening that's causing a memory leak.  Generally, the app will shutdown at the same point though, when the event that causes the memory issues runs.

New Developer
Posts: 57
Registered: ‎08-08-2008
My Device: Not Specified

Re: Unexpected application termination

Thanks for the response Chad.  Now begs the question 'what causes a memory leak? !!!


The problem does generally happen in the same place, where there is a little JavaScript work going on (nothing too heavy).  However, unable to reproduce back at the ranch (typical hey).  There are about 100 users using the app daily and it happens once or twice a week to them.  Frustrating part is, it's when it's sending information to their back office, so they can potentially lose entered information.


The routine is basically is looping through the DOM to pick out entered information, saving it to local storage and then fireing it back via XHR.  It never seems to hit the XHR when it fails, so either it's bombing out when accesing the DOM or when writing to local storage.