• 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
breaking on fast enumeration mutation error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

breaking on fast enumeration mutation error?


  • Subject: breaking on fast enumeration mutation error?
  • From: Kathy Tafel <email@hidden>
  • Date: Wed, 2 Dec 2009 17:00:38 -0800

Hiya,

I am catching an exception, a fast enumeration mutation error, but don't really see where I'm making the error. Could someone walk me through setting an appropriate breakpoint, as I am only working on my first project, or point to a how to? My KVO exceptions were helpful in telling me to set NSKVODeallocateBreak.... This says 

main: Caught NSGenericException: *** Collection <NSCFArray: 0x13aeb0> was mutated while being enumerated.
 
It only ever happens on the iPhone, never in the simulator, when I am not debugging, when the rest of the system is wigging out on low memory, and when I've recovered from low memory several times. Think I'll go try to be more efficient about memory, but should probably find this. :/

(have searched on every "for (", "removeObject", "addObject", "removeFromSuperview"...)



TIA,
KT
 _______________________________________________
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

  • Follow-Ups:
    • Re: breaking on fast enumeration mutation error?
      • From: Oftenwrong Soong <email@hidden>
    • Re: breaking on fast enumeration mutation error?
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Converting Xcode paths to usable paths
  • Next by Date: Re: breaking on fast enumeration mutation error?
  • Previous by thread: Re: Bug preprocessing Info.plist files in Xcode 3.2.1
  • Next by thread: Re: breaking on fast enumeration mutation error?
  • Index(es):
    • Date
    • Thread