On Apr 11, 2012, at 9:04 PM, King Coffee wrote:
> I'm dynamically loading a image. The function below can be executed 3 times
> be for the log box reports an error (See below).
>From the error output:
GC_EXTERNAL_ALLOC freed 54K, 50% free 2805K/5511K, external
22596K/24644K, paused 162ms
10077696-byte external allocation too large for this process
VM won't let us allocate 10077696 bytes
Rephrased, Dalvik had allocated 24.6MB of RAM, and was trying to allocate
another 10MB (total: ~35MB), which exceeds the Dalvik VM limits; see the
dalvik.vm.heapsizse system property [0], which on my N1 is 32m, and on many
devices (including the emulators) is 24m.
You should resize your images so that they're smaller and don't consume so much
memory. Alternatively, rework your app logic so that they're not all "live" at
the same time.
- Jon
[0] adb shell getprop dalvik.vm.heapsize
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid