Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cursor finalized without prior close() warning. what does it mean?

LogCat keeps on showing me a

Cursor finalized without prior close()

warning.

I was using SQLite on a previous version of the app, but don't use it anymore.

I tried to find the cause for this warning with no luck. some Google and Stackoverflow references say it's related to the db.

What does this warning mean? should I ignore it?

I could supply a sample code but I don't have an idea which part of my app causes this. there is also no stack trace added.

EDIT: Apparently a cursor is being used by a 3rd party dependency that I'm using, which is causing this warning.

like image 902
Omri374 Avatar asked Mar 12 '14 14:03

Omri374


1 Answers

Exactly what your warning says, you have some cases that you didn't use

cursor.close();
like image 158
Barışcan Kayaoğlu Avatar answered Oct 19 '22 16:10

Barışcan Kayaoğlu