Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
Posts: 17
Registered: ‎04-16-2011
My Device: 7100T
My Carrier: BB
Accepted Solution

“DatabaseIOException: File system error (12)” when using database?

I have created a tab bar which appears when I enter first time in database screen, this code is working fine. But when we go on another tab and again go on database screen tab it throws an exception

net.rim.device.api.database.DatabaseIOException: File system error (12)

I have closed database properly.

I Have close database in finally block.Database is closing each time when I am moving the tab

 

 

Developer
Posts: 265
Registered: ‎01-02-2011
My Device: Z30, PlayBook
My Carrier: AT&T

Re: “DatabaseIOException: File system error (12)” when using database?

Don't close the database each time.

Open it once when you open your application and call that instance for each usage of the database.

_________________
Meetup for BlackBerry 10
Meetup Search Tool - not available at the moment