Re: breaking on fast enumeration mutation error?
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