It seems that you are querying the db, but after you are done with the
cursors, you haven't closed them. Just close all the cursors, and the
errors will vanish.

Thanks,
Dexter.

On Aug 7, 7:45 pm, Paul Drummond <paul.drumm...@iode.co.uk> wrote:
> When I run my app in debug mode I constantly get the debugger breaking out
> due to a IllegalStateException:
>
> 08-07 14:40:00.261: INFO/dalvikvm(808): Ljava/lang/IllegalStateException;:
> Finalizing cursor android.database.sqlite.sqlitecur...@437a2d80 on null that
> has not been deactivated or closed
> 08-07 14:40:00.266: INFO/dalvikvm(808):     at
> android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
> 08-07 14:40:00.266: INFO/dalvikvm(808):     at
> dalvik.system.NativeStart.run(Native Method)
>
> I have checked on this group and realise it must be because I have not
> closed a cursor somewhere but I have checked a million times and I am
> absolutely sure I always either call startManagingCursor() or close all my
> cursors explicitly.
>
> Yet I still get these exceptions and it's not just the odd one - sometimes I
> get 5 in a row!!!  The only thing I can think of it that I have
> mis-understood somewhere along the line and I am misusing cursors somehow!
>
> The only information I get is the above so I have no way of tracing where
> the actual resource leak is coming from.
>
> Can anyone point me in the right direction please?
>
> Thanks,
> Paul Drummond
> --
> Iode Software Ltd, registered in England No. 6299803.
>
> Registered Office Address: 12 Sancroft Drive, Houghton-le-Spring, Tyne &
> Wear, DH5 8NE.
>
> This message is intended only for the use of the person(s) ("the intended
> recipient(s)") to whom it is addressed. It may contain information which is
> privileged and confidential within the meaning of applicable law. If you are
> not the intended recipient, please contact the sender as soon as possible.
> The views expressed in this communication may not necessarily be the views
> held by The Company.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to