The "delegate" keyword generates a hidden object (you may see it using a
disassembly tool). I believe it may contain a hard link to your
ViewController instance since "this" variable is available inside the
delegate body. Try to create the timer handler outside your view controller.

2011/11/1 shawnlehner <[email protected]>

> Thanks for the reply!
>
> This is what I expected but my tests say otherwise. I performed a few very
> crude tests and it does not appear that the View is being released. Here is
> what I did ...
>
> In the ViewDidLoad I created a WeakReference to the view and stored it for
> later. When the DidReceiveMemoryWarning I invoked the following code:
>
> t = NSTimer.CreateRepeatingScheduledTimer(0.1, delegate {
>                                Console.WriteLine(wr.IsAlive);
>                        });
>
> This results in wr.IsAlive returning true consistently.
>
> Thanks!
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/Proper-UIViewController-UIView-handeling-tp3964036p3964528.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
>
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to