I am using the SQLite shell of the FMDatabase in Objective-C and I have the following problem:
I run XML parsing and inserting the database into the background thread for some content that the user does not have access to, however the user can interact with the user interface and database from the section in which they are located.
The FMDatabase <FMDatabase: 0x17b7b0> is currently in use.
In random order, I get a notification โFMDatabase is already in useโ and the array will never be populated with the database. I got the impression that the FMDatabase class will process the request when it becomes free, but I have:
while(contents.count < 1){ sleep(1); }
Hoping that as soon as the database is free, the array will be full. I also tried restarting the massive collection of script if the database is busy, but to no avail.
Sorry if this question is confusing, I am happy to clarify.
John sloan
source share