I have looked as hard as I could to find past posts on this topic, but
nothing I found seems to be able to help... So...

I have one additional thread running in my activity. This thread's job
is to scan a content provider and check the entries to see if they
need updating.  It is running a method in which a local cursor is
repeatedly created (and closed/destroyed for every item in the
provider (i.e. there are a lot). I'm only mentioning the cursor
because one of the previous posts about this mentioned that un-closed
cursors could cause the GREF count to climb. So, when I saw that I was
not in fact closing the cursor after every call to this method, I
hoped that would fix it... but no dice. Also, the thread is not
running repeatedly, but runs once onResume. I can also say that I've
limited the source of the problem to this one method because when I
cut it out, the GREFs are perfectly fine (no increase messages at
all).

This issue inevitably ends up crashing my program if I cause the
update process to run more than 3 or 4 times in a row (which is
definitely a possibility with normal use by the unsuspecting user), so
it is unacceptable. Of course, it's unacceptable no matter what, but
in any case, I am desperate to fix this. Can anyone help?

Thanks!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to