Monday, February 2, 2009

What Is - The reason a reset is required when upgrading an application

When performing an application upgrade over the wireless network, the BlackBerry device user may be prompted to restart the BlackBerry device for the upgrade to complete. The application developer has minimal influence over whether or not a reset is required, other than to completely terminate the application prior to performing the upgrade. In general, no action is required from the application developer because these reset prompts are normal for the BlackBerry device and provide a clean operating environment.

The following list provides the most common causes for BlackBerry device reset prompts when upgrading an application:

1. An application thread is running from one of the COD files to be updated.
2. The application defines a dependency between a native class and one of its classes, possibly by a listener.
3. The application contains a live reference to a large array or large String that cannot be copied.
4. The application contains a live reference to a transient object.
5. The application contains a live reference to a persistent object.
6. The virtual machine (VM) detects another application's dependence on one of the application's COD files, possibly by a COD file defined as a library.
7. The application is very large and/or contains many sibling COD files, resulting in the need for some complex linking operations that are only performed during startup.

No comments:

Post a Comment

Place your comments here...