Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit 20a45e5

Browse files
committed
Add explicit GC.Collect in Sample
There's a large image loaded as the backdrop. Let's help the GC a bit by collecting after we've done so. This should help Bugzilla #40036.
1 parent fc259af commit 20a45e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

design/samples/Cheesesquare/CheeseDetailActivity.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ void loadBackdrop()
5050

5151
var r = Cheeses.GetRandomCheeseBackground ();
5252
imageView.SetImageResource (r);
53+
54+
GC.Collect ();
5355
}
5456

5557
public override bool OnCreateOptionsMenu(IMenu menu)

0 commit comments

Comments
 (0)