Re: [android-developers] Out of memory - despite being way under 16mb

2011-02-25 Thread Dianne Hackborn
Memory fragmentation does not cause this; the Dalvik heap limit is enforced based on the actual active allocations. Note that bitmaps are NOT include in the Dalvik heap based on what ddms reports, but they are included in the heap limit, so most likely you have a lot of bitmap data. (In HC this i

[android-developers] Out of memory - despite being way under 16mb

2011-02-24 Thread Sheado
Hello. I tried posting this earlier, but it didn't seem to stick (so sorry if it double posts). My app occasionally runs out of memory when loading bitmaps. I call recycle() on every bitmap I'm done with and even set them to null. As far as diagnostics: * I ran ddms and never saw the heap go over