• 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
CoreData: The NSManagedObject with ID:... has been invalidated
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CoreData: The NSManagedObject with ID:... has been invalidated


  • Subject: CoreData: The NSManagedObject with ID:... has been invalidated
  • From: Pierre Bernard <email@hidden>
  • Date: Sat, 10 Dec 2005 22:26:33 +0100

Hi!

I have a document-based CoreData application. When I close a document window, I often see a message along the lines of:

2005-12-10 22:19:13.846 HoudahSpot[4246] *** -[NSAutoreleasePool dealloc]: Exception ignored while releasing an object in an autorelease pool: The NSManagedObject with ID:0x36b070 <x-coredata:/// Scope/tC281E395-EA24-48A3-8B5C-2953E1B09AD5> has been invalidated.

The object has been created (autoreleased) in the NSDocument initializer - (id)initWithType:(NSString *)typeName error:(NSError **) outError;

My guess is that the message I am seeing is from NSObjectInaccessibleException. Seems like something trips a fault or otherwise touches the object after the document's CoreData context got invalidated.

How do I go about to debug this?

NSAutoreleasePool just swallows the exception leaving me with close to no information. A breakpoint on -[NSObjectInaccessibleException raise] is not hit.

TIA
Pierre

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Prev by Date: setNeedsDisplay oddity?
  • Next by Date: checkbox grouping with binding
  • Previous by thread: Re: setNeedsDisplay oddity?
  • Next by thread: checkbox grouping with binding
  • Index(es):
    • Date
    • Thread