• 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: Array index out of bounds...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Array index out of bounds...


  • Subject: Re: Array index out of bounds...
  • From: Jerry LeVan <email@hidden>
  • Date: Sun, 25 Jul 2004 14:33:57 -0400

Sigh, I wish you could have written earlier, I used a crumb
trail of NSLog's till I ran down the problem...

Right now it looks like

[cmd stringByTrimmingCharactersInSet:
[NSCharacterSet whitespaceAndNewlineCharacterSet]]

might not be reducing strings to the empty string when they
are composed blanks and newlines taken from a text view.

Jerry

On Jul 25, 2004, at 2:17 PM, Nick Zitzmann wrote:


On Jul 25, 2004, at 11:30 AM, Jerry LeVan wrote:

I have developed a problem with my app. I am getting an
array index out of bounds and I can't figure out where
the rascal is failing. I just a message on the console
that the bad thing happened.

*** -[NSCFString characterAtIndex:]: Range or index out of bounds

How can I tell the debugger to show me where this happens?

Try setting a symbolic breakpoint on "+[NSException raise]" without the quotes. You can do this in Xcode's Breakpoints window.

Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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.


References: 
 >Array index out of bounds... (From: Jerry LeVan <email@hidden>)
 >Re: Array index out of bounds... (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Array index out of bounds...
  • Next by Date: Automatically opening the firewall?
  • Previous by thread: Re: Array index out of bounds...
  • Next by thread: Automatically opening the firewall?
  • Index(es):
    • Date
    • Thread