On 01.07.2011 15:03, Jon Hopkins wrote:
> Hi,
>
>
>
> Calling this method on a timer will always eventually crash. GC is not
> working here, and I am
>
> Completely out of ideas.....
>
...
>
> view.BackgroundColor =
> UIColor.FromPatternImage(UIImage.FromFile("assets/gallery/pic_" + idx +
> ".jpg"));
>
Try this:
using (var image = UIImage.FromFile(
"assets/gallery/pic_" + idx + ".jpg"))
using (var color = UIColor.FromPatternImage(image) {
view.BackgroundColor = color;
}
Robert
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch