Welcome!

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

Java Development

getObjectSize and getAllocated return 0

by Retired ‎02-16-2010 10:21 AM - edited ‎02-17-2010 10:51 AM (2,143 Views)

Summary


This article applies to the following:

  • BlackBerry® API Set 4.6
  • BlackBerry® Bold™ 9000 smartphone
  • BlackBerry® Device Software 4.6


Details


Problem


The following methods return 0.



net.rim.device.api.system.Memory.getTransientStats().getObjectSize();
net.rim.device.api.system.Memory.getPersistentStats().getObjectSize();
net.rim.device.api.system.Memory.getObjectStats().getObjectSize();
net.rim.device.api.system.Memory.getPersistentStats().getAllocated();


Cause


These methods have been deprecated and now return 0.


Resolution


This is expected behavior; there is no resolution.


Contributors
Users Online
Currently online: 38 members 2,299 guests
Please welcome our newest community members: