Alex Rivera | Logout

Cursor finalized without prior close()

Asked 2012-05-03T15:19:14.763
19

I have a listview. I get data from an SQLite database. I get this error:

error

It occurs when I go from line 20 to 21:

occur

I placed cursor.deactivate() and cursor.close() on line 50, with no result. Why I get this error and how to solve it?

Edit
Report

1 Answer

4

Always, remember to close the cursor by calling cursor.close() before closing the database. That should fix your problem.

answered 2012-10-11T13:43:37.450

Your Answer