Petr,

UIImage is mostly a small wrapper around CoreGrpahics CGImage (which
is thread safe). We had confirmation (from Apple) that UIImage itself
is also thread safe and the check was removed (in this instance) for
the next MonoTouch release.

Regards,
Sebastien

On Wed, Jun 20, 2012 at 6:03 AM, Rolf Bjarne Kvinge <[email protected]> wrote:
> Hi,
>
> On Wed, Jun 20, 2012 at 11:39 AM, Petr Slováček <[email protected]>
> wrote:
>>
>> Hello everyone,
>>
>>
>>
>> Yesterday I tried 5.3.4 beta version of MonoTouch but I came across a
>> strange problem that wasn't occurring with the latest stable version.  If I
>> create an instance of UIImage in a background thread (through
>> DispatchQueue.DefaultGlobalQueue.DispatchAsync) and try to access
>> UImage.Size.Width I get "UIKit Consistency error: you are calling a UIKit
>> method that can only be invoked from the UI thread." exception. Is this a
>> bug or a some new policy?
>
>
> It is a new thread check, you can read more about it here:
>
> http://docs.xamarin.com/ios/releases/MonoTouch_5/MonoTouch_5.3#Cross-thread_UI_Checks
>
> Rolf
>
>>
>>
>>
>> Petr
>>
>>
>> _______________________________________________
>> MonoTouch mailing list
>> [email protected]
>> http://lists.ximian.com/mailman/listinfo/monotouch
>>
>
>
> _______________________________________________
> 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