i am facing the following problem:
RecordStore gets corrupted on nokia series 40 phone, if while my application is running and I delibrately remove the phone battery.
Exact sequence of steps:
- Launch Application
- Create RecordStore
- Write Data
- Close RecordStore
- Open RecordStore
- Visualize Data in Application
- Remove Phone Battery to test corruption.
- Insert Battery again, Switch on the phone and on launching the application again, application fails to start - RMS gets corrupted.
Since I had already closed the recordstore after writing the data, shouldn't the data be persistent even I remove the battery?
Or is it something else I need to do to make data persistent to prevent such corruptions.