This project has moved and is read-only. For the latest updates, please go here.

Xamarin.iOS TwoWay binding memory leak



ipho wrote Jul 12, 2016 at 4:09 PM

Any suggestions?

lbugnion wrote Jul 12, 2016 at 7:02 PM


While we take care of being as weak referenced as possible, it is possible that some edge cases create issues. I will take a look as soon as I can. In the mean time, please detach the binding before your objects get disposed, for example when you navigate away from the page containing the binding.



ipho wrote Jan 27, 2017 at 11:57 AM


Any updates on this?
I do follow your advice and detach binding when I don't need them any more, but sometimes there is no place you can detach. For example when using bindings inside UITableViewCell which has no explicit lifetime.

ipho wrote Jan 27, 2017 at 12:02 PM

Also I wouldn't say that this is edge case. TwoWay binding is most common case I can image.