Help Center
Local Navigation
- Development Guide
- Managing BlackBerry application projects
- Create a BlackBerry application project
- Create a Java source file in a BlackBerry device application project
- Import a BlackBerry application project from an existing BlackBerry JDE workspace
- Import a BlackBerry Java Plug-in for Eclipse sample application
- Import a file into a BlackBerry application project
- Delete a file from a BlackBerry application project
- Change the properties of a BlackBerry application project
- Project dependencies
- Add a project dependency
- Add a .jar file dependency
- Specify the application settings for a BlackBerry application project
- Specify the localization settings for a BlackBerry application project
- Specify compiler settings for a BlackBerry Application project
- Specify the build settings for a BlackBerry application project
- Specify the alternate entry point settings for a BlackBerry application project
- Create a launch configuration for a BlackBerry device application project
- Managing BlackBerry device application memory
- Localizing BlackBerry device application projects
- Building a BlackBerry device application
- Running BlackBerry device applications that use protected APIs
- Register to use protected BlackBerry APIs
- Using restricted code signatures
- Request a code signature
- Requesting a replacement registration key
- Prevent a BlackBerry device application that runs on the BlackBerry Smartphone Simulator from accessing protected APIs
- Use a code signing key to protect packages and classes
- Install a new code signing key
- Import an existing code signing key
- Remove a code signing key
- View the signature status for code signature requests
- Restrict access to packages or classes in a BlackBerry library project
- Sign a BlackBerry application project automatically after packaging
- Turn off automatic signature when you package a BlackBerry application project
- Run the BlackBerry Signature Tool in the background
- Suppress password prompts from the BlackBerry Signature Tool
- Suppress code signing warnings
- Testing and debugging BlackBerry applications
- Configuring the BlackBerry Smartphone Simulator
- Specify configuration settings for the BlackBerry Smartphone Simulator
- Specify the appearance of the BlackBerry Smartphone Simulator
- Specify debugging preferences for the BlackBerry Smartphone Simulator
- Specify network settings for the BlackBerry Smartphone Simulator
- Specify ports for the BlackBerry Smartphone Simulator
- Specify memory settings for theBlackBerry Smartphone Simulator
- Specify advanced features for the BlackBerry Smartphone Simulator
- Specify a BlackBerry device for a BlackBerry Smartphone Simulator launch configuration
- Specify a BlackBerry Smartphone Simulator that is installed outside of the Eclipse environment
- Run a BlackBerry device application in the BlackBerry Smartphone Simulator
- Testing a BlackBerry device application with the BlackBerry Smartphone Simulator
- Testing a BlackBerry device application that uses an HTTP connection
- Start the BlackBerry MDS Connection Service when you start the BlackBerry Smartphone Simulator
- Open a web site in the BlackBerry Browser when the BlackBerry Smartphone Simulator starts
- Start a BlackBerry device application when the BlackBerry Smartphone Simulator starts
- View output from the BlackBerry Smartphone Simulator
- Add a BlackBerry device application to the BlackBerry Smartphone Simulator launch configuration
- Debug a BlackBerry device application on a BlackBerry Smartphone Simulator that is running
- Add a .jar file, that was created without using RAPC, to the BlackBerry Smartphone Simulator or a BlackBerry device
- Run a MIDlet application in the BlackBerry Smartphone Simulator
- Reload a BlackBerry device application without restarting the BlackBerry Smartphone Simulator
- Restore the default settings for the BlackBerry Smartphone Simulator
- Set preferences for running a BlackBerry device application in debug mode
- Test a BlackBerry device application on a BlackBerry device
- Debug a BlackBerry device application on a BlackBerry device
- Making BlackBerry device applications available to BlackBerry device users
- Packaging a BlackBerry application project for multiple versions of BlackBerry Device Software
- Distributing a BlackBerry device application from a web page
- Distribute a BlackBerry device application from the BlackBerry Desktop Manager
- Turn off .alx generation when you package a BlackBerry application project
- Configuring the BlackBerry Smartphone Simulator
- Troubleshooting
- Managing BlackBerry application projects
- Provide feedback
- Legal notice
BlackBerry Manuals & Help
>
Documentation for Developers
>
BlackBerry Java Plug-in for Eclipse
>
BlackBerry Java Plug-in for Eclipse (Windows)
>
Development Guide - BlackBerry Java Plug-in for Eclipse - 1.1
Display objects that are stored in memory to locate memory allocation problems
- Specify two or more breakpoints in your code.
- On the Run menu, click Debug As > BlackBerry Simulator. The application runs to the first breakpoint.
- In the Debug view, click Suspend.
- On the Window menu, click Show View > Other.
- Expand the BlackBerry folder.
- Click BlackBerry Objects View.
- Click OK.
- In the BlackBerry Objects View, click Set up filters.
- In the Objects View Options dialog box, in the Snapshot Filter drop-down list, click Compare to Snapshot.
- Click OK.
- In the BlackBerry Objects View, click Perform garbage collection.
- Click Snapshot.
- Press F8 to resume running the application.
- Perform operations in the application that do not increase the number of reachable objects. For example, create a new contact and then delete it.
- In the Debug view, click Suspend.
- In the BlackBerry Objects View, click Perform garbage collection. The BlackBerry Objects View displays the number of objects that have been deleted and added since the previous snapshot. If the number of objects added is not the same as the number of objects deleted, you might have a memory allocation problem.
- To identify new objects, use the Type, Process, and Location filter types in the Objects View Options dialog box.
- To save the contents of the BlackBerry Objects View to a comma-separated values (.csv) file, click Save.
Next topic: Find a memory allocation problem
Previous topic: View statistics to locate memory allocation problems