Hello,
In every scene I am opening the SQLite database at the beginning and then doing a DB:Close() when I exit the scene. Every once in a while I get a message that I was attempting to use a closed SQLite database. Has anyone else had this happen? Should I do a check when I try to open the database to verify it is open and if not try again? My question is how can I tell if it opened successfully or not?
I open the database like this:
local path = system.pathForFile("database.db", system.DocumentsDirectory) db = sqlite3.open( path )
Do I just check if db is nil? If so I can do that but still strange it only happens once in a while and this is in my windows simulator.
Thanks,
Warren