• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMS Problem With Nokia 6230

 
Sajjad Awan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im trying to run this segment of code to save some records in RMS

try {
print("\n RMS Size "+recordStore.getSize());
print("\n Available Size "+recordStore.getSizeAvailable());
print("\n Current Record Size "+recData.length);
print("\n AAA: GOING TO SAVE RECORD " + (recordsCount+1));

recordID = rs.addRecord(recData, 0, recData.length);
print("\n BBB: RECORD SAVED " + (recordsCount+1));
recordsCount++;

}
catch (RecordStoreNotOpenException rsnoe) {
print("\n CCC: RSNOExc WHILE SVING RECORD ID " +
recordsCount);
print("\n DDD: EXCEPTION MSG: " +rsnoe.toString());

}catch(RecordStoreException rse){
print("\n EEE: RecordstoreException RECORD ID " +
recordsCount);
print("\n FFF: EXCEPTION MSG: " +rse.toString());

}

and get this output


RMS size 29568
Available size 1386358
Current record size 3476
AAA: going to save record 9
EEE: RecordStoreException at Record id 9
FFF: Exception msg: javax.microedition.rms.RecordStoreFullException

now check this output which shows that Available size over than 13MB but it get RecordStoreFullException while adding record of 3479 bytes

Could you please tell me why this exception is being raised or is there any solution to fix it
Thanx in advance
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, not sure if this is correct. But adding the used amount to record #9 size, it makes it go over 32K. Maybe the phone has a limitation of up to 32K per RecordStore.

Mark
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mark Spritzler:
Well, not sure if this is correct. But adding the used amount to record #9 size, it makes it go over 32K. Maybe the phone has a limitation of up to 32K per RecordStore.

Mark


True. Series 40 devices do have such limitations. It is a bummer but you have to live with it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic