• 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: Crashing resetting or releasing an NSManagedObjectContext
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crashing resetting or releasing an NSManagedObjectContext


  • Subject: Re: Crashing resetting or releasing an NSManagedObjectContext
  • From: Ben Trumbull <email@hidden>
  • Date: Wed, 6 May 2009 23:02:54 -0700

Well, that was quick. With NSZombieEnabled, I get this when
deallocating my context:

*** -[VetVisit_VetVisit_ _hasRetainedStoreResources]: message sent to
deallocated instance 0x16b85600

VetVisit is class that represents an Entity in my object model - the
Pet entity has a collection of VetVisit objects. I don't actually ever
manage these directly - I let Core Data NSArrayControllers handle
them. In this case, the model is never seeing any array controllers.

Is this something wrong with my model? I can't see anything wrong at
surface level - indeed, the app itself has been working perfectly with
its model for some time. I'd appreciate any pointers.

You've over released a managed object. If you use Instruments ObjectAlloc tool with retain counting and Zombies enabled it will record each stack trace of every retain and release. It makes these things a lot easier to track down.


- Ben



_______________________________________________

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


  • Prev by Date: Re: Strategy for acting on changes in child objects?
  • Next by Date: Re: Strategy for acting on changes in child objects?
  • Previous by thread: Re: Crashing resetting or releasing an NSManagedObjectContext [SOLVED]
  • Next by thread: Re: Installer has admin permissions but installer plugins don't
  • Index(es):
    • Date
    • Thread