BlackBerry Forums Support Community

Closed Thread
LinkBack Thread Tools
Old 02-11-2009, 09:59 PM   #1 (permalink)
New Member
Join Date: Feb 2009
Model: 8320
Carrier: Rogers
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Data lost in RecordStore

Please Login to Remove!

I have a J2ME application running on the BlackBerry that uses the RecordStore API to store binary data in records where each record is 512 bytes long. I have an issue where the data in the records is being wiped and replaced with all zeroes. In the most recent reported example the RecordStore contained 28 records for a total of 14436 bytes of data. When the application started and opened the RecordStore the record count was still 28 and each of the records was still 512 bytes in size but all the bytes were zeroed.

If it was just corruption of one or two records I'd assume it is a bug in my app or perhaps some kind of power loss event, but I don't see how all the data can be erased. Does anyone know of a scenario in which this will occur as well as some techniques to mitigate it? I'm thinking of using shadow pages in an parallel record store but that is wasteful on a resource constrained device.


Copyright 2004-2016
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.