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: Fri, 06 Sep 2013 09:22:43 +0200
On 05/09/2013, at 1:52 PM, Jonathan Taylor <email@hidden> wrote:
> That suggestion for a breakpoint is a great one. Sadly the condition you quoted doesn't seem to be parsed correctly by the debugger, even with casting. Even just "po (NSThread*)[NSThread currentThread]" fails on my machine.
Hmm, works OK for me.
> Fortunately, though, there were only a couple of dozen hits on the breakpoint per iteration of the code, and sure enough it immediately pinpointed a case where I was erroneously calling willChangeValueForKey from a secondary thread, which was causing a GUI update as a side-effect.
Glad you found the problem ;-)
--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