Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Archived:RecordStore memory consumption problem on S60 devices (Known Issue)

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

The article is believed to be still valid for the original topic scope.

Article Metadata
Tested with
Devices(s): Nokia N70, Nokia N90, Nokia E70
Created: User:Technical writer 1 (21 Sep 2006)
Last edited: hamishwillee (22 Oct 2013)


Increasing and decreasing record size and deleting a record does not free memory correctly.


Increasing and decreasing the size of a record by using the RecordStore.setRecord() method can increase memory consumption for the first time. If the increase/decrease is done for the same record in a loop, the size does not increase/decrease correctly in every iteration.

How to reproduce

Add a new record, increase its record size, and decrease it by using the following code lines:

recordstore.addRecord(new byte[100], 0, 100);
recordstore. setRecord(1, new byte[1000], 0, 1000);
recordstore. setRecord(1, new byte[100], 0, 1000);

Delete the record by using RecordStore.deleteRecord() method.

The available RecordStore size can be asked between these steps by using the RecordStore.getSizeAvailable() method.

This page was last modified on 22 October 2013, at 05:51.
24 page views in the last 30 days.