日期:2014-05-20  浏览次数:20741 次

请问使用RecordStore时候出现下面的错误怎么解决
javax.microedition.rms.RecordStoreException: deleteRecordStore error: record store is still open
at javax.microedition.rms.RecordStore.deleteRecordStore(+60)
at CommandEvent_MIDlet.destroyApp(+29)
at javax.microedition.midlet.MIDletProxy.destroyApp(+8)
at com.sun.midp.midlet.Scheduler.schedule(+324)
at com.sun.midp.main.Main.runLocalClass(+28)
at com.sun.midp.main.Main.main(+116)


------解决方案--------------------
探讨
我后来考虑了一下,是不是关闭rms需要一定的延时,执行rs.closeRecordStore()后没等到彻底关闭就立刻删除就会出现这情况,设个计时器延时一段时间是不是能解决?