Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    May 2005

    RMS getSizeAvailable()

    Hello all,

    I am using nokia series 40 phones and using RMS for persistent storage. Now while I try to write data to the RMS, after some operations the application crashes and phone switches off temporarliy. It happens as the persistent storage for RMS gets exceeded.

    But before doing any operation, I check using getSizeAvailable() and the method still shows me data is available.

    A typical case is when getSizeAvailable shows 5-7kb is available but even then the RMS is not able to write data and the application crashes.

    It will be great if someone can point some solutions in this direction.



  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Cheshire, UK
    There's a bug in some Series 40s that causes this. It seems to happen when you add and delete records at random within the same record store.

    The fix is to create each record in a separate record store, and delete and re-create the entire record store each time you want to update the record.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts