Bug 1397 - Populating a list using BaseAdapter increases GREF
Summary: Populating a list using BaseAdapter increases GREF
Alias: None
Product: Android
Classification: Xamarin
Component: Mono runtime / AOT Compiler ()
Version: 1.0
Hardware: PC All
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2011-10-10 12:37 UTC by Joseph Hill
Modified: 2011-10-24 16:50 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Sample project (21.42 KB, application/octet-stream)
2011-10-10 12:37 UTC, Joseph Hill

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Joseph Hill 2011-10-10 12:37:26 UTC
Created attachment 660 [details]
Sample project

1) Run attached application.
2) Click the button and open the list of GridView. 
3) Use the "Back" button of the emulator, and click the button again. 
4) Repeat 15 times. 

The Gref goes to 500 and rising
Comment 3 Jonathan Pryor 2011-10-24 16:50:28 UTC
The problem here was a gref leak in Java.Lang.Class.FromType(Type), which is called internally in many places.

This will be fixed in the 1.9.2 release.