开发者

Error Uncaught out off memory when I use persisten object to save data on Blackberry?

开发者 https://www.devze.com 2023-04-09 21:00 出处:网络
I use Persisten Object to save data but when I run my application on Simulator, have 开发者_如何学Goan error dialog

I use Persisten Object to save data but when I run my application on Simulator, have 开发者_如何学Goan error dialog

 Uncaught out off memory

and run on real device, it take very long time to load and run. What did I do wrong? Please help me


The BlackBerry® Persistent Store APIs are designed to provide a flexible and robust data storage interface. With the BlackBerry Persistent Store APIs, you can save entire Java® objects to memory without having to serialize the data first. When you start the application, you can retrieve the Java object from memory and process the information. No size limit exists on a persistent store; however, the limit for an individual object within the store is 64 KB.

The BlackBerry Persistent Store APIs do not provide a relational database model. You must create an effective object model and manage the relationships between objects, as necessary, using indices and hash tables.

sample example of storing persistent data

best practice for persistent storage

0

精彩评论

暂无评论...
验证码 换一张
取 消