• 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: Rookie question. Where did expection raised!?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rookie question. Where did expection raised!?


  • Subject: Re: Rookie question. Where did expection raised!?
  • From: j o a r <email@hidden>
  • Date: Tue, 3 Dec 2002 23:23:55 +0100

1) Launch your application in the debugger

2) Pause execution and type "break raise" at the GDB prompt. Type "2" to accept the second choice that GDB presents.
(If your application hits the exception before you get a chance to pause it and set the breakpoint, just set the breakpoint after hitting the exception and then restart the app without quitting GDB)

3) Continue execution until you hit some exception, at which time GDB will break and show you the line of code where the error occurred, and / or a backtrace.

A good way to avoid these types of errors is to use NSEnumerator instead of plain for / while loops where possible!

j o a r

On Tuesday, Dec 3, 2002, at 22:53 Europe/Stockholm, Aidas Dailide wrote:

I don't have any expirience with this. My application raises this expection
every time it loads, but i don't know where it does that:

An uncaught expection was raised
*** -[NSCFArray objectAtIndex:]: index (65) beyond bounds (65)
*** -Uncaught expectio: <NSRangeExpection> *** - [NSCFArray
objectAtIndex:]: index (65) beyond buonds (65)

I guess it says that my objectAtIndex range is too big, but my app has many
objectAtIndexes and i can't find wich one does that. How to know wich one
objectAtIndex raised this?
_______________________________________________
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: 
 >Rookie question. Where did expection raised!? (From: "Aidas Dailide" <email@hidden>)

  • Prev by Date: Re: Cocoa resources
  • Next by Date: Re: Printing many, many pages efficiently
  • Previous by thread: Re: Rookie question. Where did expection raised!?
  • Next by thread: Re: Rookie question. Where did expection raised!?
  • Index(es):
    • Date
    • Thread