Crashing App from Database Open
Once I added database support to my application it consistently crashes after opening a second time.
So, I run the App, once I open the view that calls a database it works. Then I close the App and reopen and it crashes on launch. Any ideas?…
Just before posting this I figured out my issue. Make sure if you are opening a db.execute you are closing it after you use it.
1 Answer
-
Accepted Answer
I have this problem if I do not close the database resource immediately after use.
var TotalRows = db.execute('SELECT * FROM TABLE');
var TotalCount = TotalRows.getRowCount();
TotalRows.close();If I don't do TotalRows.close();
My app crashes.