I have a doubt regarding j2me Recordstore persistence.
For instance I opened a recordstore and then I added some records using addRecord() and modified some records using setRecord() methods.
If now my application exits without calling closeRecordStore() , will all the changes be persistently stored? Or can there be a case where recordstore can get corrupt if closeRecordStore() method is not called?
Javadoc of addRecord() method says:
"Adds a new record to the record store. The recordId for this new record is returned. This is a blocking atomic operation. The record is written to persistent storage before the method returns."
I tested it on some of the MIDP2 phones, it seems to work and closeRecordStore() is not mandatory. But I vaguely remember that I had some problems on MIDP1 devices long time back. Can some expert comment on the behavior of j2me recordstore persistence ?