Re: Debugging kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region
Re: Debugging kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region
- Subject: Re: Debugging kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region
- From: Graham Cox <email@hidden>
- Date: Thu, 05 Sep 2013 12:34:20 +0200
On 05/09/2013, at 12:21 PM, Jonathan Taylor <email@hidden> wrote:
> Searching for those terms finds suggestions that this may be associated with updating progress bars from a secondary thread. I still see the error even after removing the only progress bar from my program; I don't know whether the cause is something genuinely associated with progress bars, or whether it's just that it's easy to slip up and update them from a secondary thread, triggering this error.
You can't do any UI-related updates from a secondary thread, you must ask the main thread to do it.
It might not be progress bars but anything at all that's being drawn from a secondary thread. The error itself could indicate that an internal data structure was used or updated by another thread while in an inconsistent state.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden