Help debugging array indexing problem
Help debugging array indexing problem
- Subject: Help debugging array indexing problem
- From: email@hidden
- Date: Fri, 11 Feb 2011 19:27:23 +0000
I'm getting this error when clicking between two tables in my application:
-[NSCFArray objectAtIndex:]: index (0) beyond bounds (0)
I've checked my arrays and they are not the problem. I've added NSAsserts to check my array indeces. It appears to be coming from the frameworks. I set breakpoints at both -[NSException raise] and frpintf (found these tips in the archives), but these are never hit. Specifically, when if I click back and forth between the tables, at some point the error appears. It occurs randomly. I can click in the left table and then the right table without seeing the error, but if I continue to alternate clicks, at some point I'll get the error. How can I debug this without having to set a breakpoint on [NSCFArray objectAtIndex:]? Its called way too much. To be clear, no exception is raised. I would expect an NSRangeException, but I see nothing but the above error.
Any tips would be greatly appreciated. I'm running on MBP 2008, 10.6.6, 4GB RAM and Xcode 3.1.4.
Thanks
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden