How to debug this error on closing a document?
How to debug this error on closing a document?
- Subject: How to debug this error on closing a document?
- From: Gideon King <email@hidden>
- Date: Thu, 11 Mar 2010 10:45:21 +1000
I have a core data based application, and use the NSPersistentDocument's -managedObjectContext to get my managed object context. As far as I can see, I do not retain or release it anywhere in my code, but apparently it is getting over released when I close my document. My test case is to start my application, and then close the document.
I ran it in instruments with zombies, and it only shows two events:
# Category Event Type RefCt Timestamp Address Size Responsible Library Responsible Caller
0 NSManagedObjectContext Malloc 1 00:12.552 0x1008d01f0 240 AppKit -[NSPersistentDocument managedObjectContext]
1 NSManagedObjectContext Zombie -1 00:26.194 0x1008d01f0 0 Foundation -[NSConcreteNotification dealloc]
Seeing as none of this appears to have anything to do with my code, I am assuming that some notification created somewhere in my application is somehow the cause, but I'm not sure how to track this down.
Any suggestions would be very welcome.
Thanks
Gideon
_______________________________________________
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