• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Threaded data freaking out
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Threaded data freaking out


  • Subject: Re: Threaded data freaking out
  • From: Cameron Hayne <email@hidden>
  • Date: Fri, 7 Mar 2003 19:36:42 -0500
  • Organization: Hayne of Tintagel

Spike wrote:
> I've got an app that uses NSTableView and it's threaded. I get
> *** -[NSCFArray objectAtIndex:]: index (1) beyond bounds (1)
> I've been using the debugger and the only 2 arrays that I'm using I got
> the data for using po and they both have like 5000 items in them (like
> they're supposed to).
> The line of code that's wigging out is:
> BOOL isMissing = [[fileSizes objectAtIndex: row] isKindOfClass:
> [NSString class]];

Two comments:
1) You mention that your app is multi-threaded. So are you sure that you are properly locking the data for access by the two threads?
2) The error message seems to say that the 'row' index is 1 and that the array 'fileSizes' has only one element in it, hence the index is out of bounds.

Cameron Hayne
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Threaded data freaking out
  • Next by Date: Drawing in NSView
  • Previous by thread: Re: Threaded data freaking out
  • Next by thread: Re: Threaded data freaking out
  • Index(es):
    • Date
    • Thread