Re: [mono-android] GridView not releasing view objects

2012-01-30 Thread Steven Pack
I actually like the sound of that 'heuristic'. I can very easily bring down my app in the emulator by exceeding the GREF limit with normal usage. One function allocates about 500 at a time (updating a list view using a sub-classed ArrayAdapter) and after a few clicks it goes down. On the devic

Re: [mono-android] GridView not releasing view objects

2011-12-17 Thread HSSoftware
That seemed to resolve the problem! Thanks. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/GridView-not-releasing-view-objects-tp5078401p5082613.html Sent from the Mono for Android mailing list archive at Nabble.com. ___

Re: [mono-android] GridView not releasing view objects

2011-12-16 Thread Jonathan Pryor
On Dec 16, 2011, at 9:43 AM, HSSoftware wrote: > Attached is a reproducible case. Thank you, that simplified investigations. :-) > Is there something stupid I am doing, or is GC on a holiday? The GC is on holiday. :-) Well, not exactly. The problem here is that the GC has a limited view of memo

Re: [mono-android] GridView not releasing view objects

2011-12-16 Thread HSSoftware
Attached is a reproducible case. Is there something stupid I am doing, or is GC on a holiday? http://mono-for-android.1047100.n5.nabble.com/file/n5080378/ReproGridView.zip ReproGridView.zip -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/GridView-not-releasing-v

Re: [mono-android] GridView not releasing view objects

2011-12-16 Thread HSSoftware
It seems that this is a larger problem than I thought. When I run DDMS while running my app on the Kindle Fire, I proceed to my activity with the GridView and the thumbnails. I do about a dozen rotates, and then generate an HPROF file with DDMS. Analyzing this with Eclipse Memory Analyzer, I see, a

Re: [mono-android] GridView not releasing view objects

2011-12-15 Thread HSSoftware
When I replace my custom WorkThumbImageView with a standard ImageView, I had the same problem, except that now I had thousands of "leaky" ImageView objects instead of my custom class. So my class nor the layout is the problem. Any ideas? -- View this message in context: http://mono-for-android.1

Re: [mono-android] GridView not releasing view objects

2011-12-15 Thread HSSoftware
Sorry again, formatting got mangled ... I have an activity, whose content view includes a GridView. This GridView is backed up by a custom adapter derived from 'Java.Lang.Object, IListAdapter'. The data set behind the adapter include maybe 2300 objects, though only 80 views are visible at a time o

Re: [mono-android] GridView not releasing view objects

2011-12-15 Thread HSSoftware
Forgot to upload the file ... http://mono-for-android.1047100.n5.nabble.com/file/n5078404/WorkThumbImageView.cs WorkThumbImageView.cs -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/GridView-not-releasing-view-objects-tp5078401p5078404.html Sent from the Mono for

[mono-android] GridView not releasing view objects

2011-12-15 Thread HSSoftware
I have an activity, whose content view includes a GridView. This GridView is backed up by a custom adapter derived from 'Java.Lang.Object, IListAdapter'. The data set behind the adapter include maybe 2300 object, though only 80 views are visible at a time on the screen, thus the adapter should only