On Feb 26, 6:58 am, sukumar <bhashyam.suku...@gmail.com> wrote: > I was trying to read all Contacts field one by one and generated a v- > card and store it into a database. When I have a huge number of > contacts (say more than 150), while reading 155th contacts, I see my > application is getting killed and cat log say it because of excessive > JNI global refreences. Can anyone pls suggest what is causing the > problem and how to solve it. Also, Im not seeing any errors if I have > less than 150 contacts. Please find the complete error logs below. [...]
> 02-26 19:14:11.701: WARN/dalvikvm(1418): 918 of > Ljava/lang/ref/WeakReference; 28B (918 unique) > 02-26 19:14:11.701: WARN/dalvikvm(1418): 28 of > Ljava/lang/ref/WeakReference; 36B (28 unique) > 02-26 19:14:11.742: WARN/dalvikvm(1418): 473 of > Landroid/database/ContentObserver$Transport; 28B (473 unique) > 02-26 19:14:11.742: WARN/dalvikvm(1418): 499 of > Landroid/database/CursorToBulkCursorAdaptor; 44B (473 unique) Something you're doing is causing lots of the objects shown above to be held by native code. You're tripping the JNI global reference leak detector. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---