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

Re: breaking on fast enumeration mutation error?


  • Subject: Re: breaking on fast enumeration mutation error?
  • From: Oftenwrong Soong <email@hidden>
  • Date: Thu, 3 Dec 2009 07:42:13 -0800 (PST)

Hi all,

I have observed that many threads speak of things that happen differently on the iPhone than they do on the simulator. In general, what is the difference between the two that causes things to behave differently? By defining this, it should be possible to track down the causes of crashes much more easily.

Thanks,
Soong



________________________________
From: Kathy Tafel <email@hidden>
To: email@hidden
Sent: Wed, December 2, 2009 5:00:38 PM
Subject: breaking on fast enumeration mutation error?

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: "Hank Heijink (Mailinglists)" <email@hidden>
    • Re: breaking on fast enumeration mutation error?
      • From: Jens Alfke <email@hidden>
References: 
 >breaking on fast enumeration mutation error? (From: Kathy Tafel <email@hidden>)

  • Prev by Date: Let application ask if I want to use a certain NIC
  • Next by Date: Re: breaking on fast enumeration mutation error?
  • Previous by thread: Re: breaking on fast enumeration mutation error?
  • Next by thread: Re: breaking on fast enumeration mutation error?
  • Index(es):
    • Date
    • Thread