Sqlite 3 Opening Issue
I'm getting my data ,with several similar methods, from sqlite3 file like in following code: -(NSMutableArray *) getCountersByID:(NSString *) championID{ NSMutableArray *array
Solution 1:
You should open your DB
only once basically when you are in the initialization
phase but not when you are requesting some info to your DB
. Your code shouldn't failed though since you seems to open then close the DB after each request. Make sure this is happening by either logging those events or debugging through your code.
Solution 2:
The code you've shown does close the database, so it's likely that you forget to close it in some other place, or that some other file is opened repeatedly but never closed.
Post a Comment for "Sqlite 3 Opening Issue"