IllegalStateException problem with Cursor while DB Accessing

Tutorials with advanced 'difficulty' and more Lines of Code.

IllegalStateException problem with Cursor while DB Accessing

Postby ycnano » Mon May 03, 2010 12:41 pm


I am receiving finalizing closable issues.
the snippet from the logcat as follows:

I/dalvikvm( 585): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.SQLiteCursor@437c0e60 on null that has not been deactivated or closed

I/dalvikvm( 585): at android.database.sqlite.SQLiteCursor.finalize(

I/dalvikvm( 585): at Method)

I/dalvikvm( 585): Uncaught exception thrown by finalizer (will be discarded):
Here I do understand the problem is related to cursor that may not have handled with in the code.
here pid 585 basically the main process ID. But I do I narrow down to the code that particular cursor need to take care form this error in logcat.

Please note I am using many cursors as I retrieving records from the DB. And I have already taken care of all the cursor. But these error forcing me to look that some cursor is overlooked.

Could anybody throw some light that would help me to track down the particular cursor that are causing these trouble.
Posts: 5
Joined: Tue Mar 30, 2010 7:03 pm


Return to Advanced Tutorials

Who is online

Users browsing this forum: No registered users and 2 guests