On Mon, Aug 13, 2012 at 4:02 AM, René Ruppert <[email protected]> wrote:
> Hi,
>
> can the MonoTouch techies please comment on the following thoughts?
>
> UIImage's PNG loading is asynchronous (this is a fact).
> If I have a UITableView now (together with its controller) that is using
> cells and those in turns use PNGs, the cell might be loaded and used before
> the PNG has been loaded, right?
> This again is leading me to the conclusion: if the UITableView and/or its
> controller is already gone (removed from the view hierarchy and no longer
> referenced by managed code) before UIImage has finished loading, could it
> then happen that the UITableViewController gets resurrected via the IntPtr
> c'tor?

I _think_ it's unlikely. It's a fairly common pattern to use default
images in a table then lazily loading "better" images. In such cases
dismissing the view controller (showing the table) while some images
are still loading happens often…

> Why am I asking? Because most of the IntPtr calls seem to happen in
> combination with table views and I'm wondering if the above scenario could
> cause it.

Rolf added more details (e.g. the selector name) when this exception
occurs. This will be available in our next release (5.3.6, already in
progress) and should help you (and us) better identify why those cases
occurs (leading the way to better fixes).

Sebastien
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to