• 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: performBatchUpdates: + removeObjectAtIndex: = EXC_BAD_ACCESS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: performBatchUpdates: + removeObjectAtIndex: = EXC_BAD_ACCESS


  • Subject: Re: performBatchUpdates: + removeObjectAtIndex: = EXC_BAD_ACCESS
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 16 Jan 2015 21:50:20 -0800

I suspect your code is getting called on multiple threads, which would definitely cause crashes or heap corruption since you haven't added any synchronization around your objects. If you don't explicitly use multiple threads, maybe the UICollectionView is running your performBatchUpdates: block on a background thread? Set some breakpoints and look at what thread(s) they're hit on.

—Jens
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >performBatchUpdates: + removeObjectAtIndex: = EXC_BAD_ACCESS (From: Josh Avant <email@hidden>)

  • Prev by Date: Re: Using NSArrayController with a complex, heterogeneous model
  • Next by Date: Re: Using NSArrayController with a complex, heterogeneous model
  • Previous by thread: performBatchUpdates: + removeObjectAtIndex: = EXC_BAD_ACCESS
  • Next by thread: Using NSArrayController with a complex, heterogeneous model
  • Index(es):
    • Date
    • Thread