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:
An application thread is running from one of the COD files to be updated.
The application defines a dependency between a native class and one of its classes, possibly by a listener.
The application contains a live reference to a large array or large String that cannot be copied.
The application contains a live reference to a transient object.
The application contains a live reference to a persistent object.
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.
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.