Namespaces
Variants
Actions

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

Jump to: navigation, search
Archived.png
Archived: 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

Compatibility
Platform(s): S60 2nd Edition FP3, S60 3rd Edition

Article
Created: User:Technical writer 1 (21 Sep 2006)
Last edited: hamishwillee (28 Jun 2012)

Overview

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

Description

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 28 June 2012, at 08:06.
147 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved