[mono-android] Custom Gallery App
Jonathan Pryor
jonp at xamarin.com
Thu Feb 2 17:26:16 UTC 2012
On Jan 26, 2012, at 10:52 AM, Ariandle wrote:
> If anyone has any suggestions I would really appreciate some help here. These out of memory errors are really becoming a roadblock for this app of mine.
Two suggestions:
1. Override Activity.OnDispose() and call GC.Collect() (and/or call GC.Collect() from somewhere else that is called frequently but not too frequently).
2. Enable global reference logging, find out where they're being created, and see if you can Dispose() of those objects instead relying on the GC:
http://docs.xamarin.com/android/advanced_topics/diagnostics#Global_Reference_Messages
- Jon
More information about the Monodroid
mailing list