Re: Crashing resetting or releasing an NSManagedObjectContext
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