Re: NSEntityDescription random crash

2008-07-22 Thread Nicolas L.
Thank you - I have tried enabling NSZombie and it seems the object being freed is my managedObjectModel. I really can't figure out why the MOM instance is being deallocated. I don't have a lot of code to post since I'm using the standard Xcode- generated code for non-duc based CoreData apps.

NSEntityDescription random crash

2008-07-10 Thread Nicolas Lapomarda
Soon after the main nib has been loaded, I need to execute a fetch request. Now as the title says, the crash is random: sometimes the app executes just fine, sometimes it crashes. When it does crash, here is where it happens: [NSEntityDescription entityForName:anEntityName

Re: NSEntityDescription random crash

2008-07-10 Thread I. Savant
Is NSEntityDescription acting crazy or am I? This is almost certainly a memory management error on your part, but it's impossible to say for sure because: 1 - You did not provide a code listing that demonstrates: a) where the pertinent objects are being declared/created*. b) the context

Re: NSEntityDescription random crash

2008-07-10 Thread Shawn Erickson
On Thu, Jul 10, 2008 at 6:56 AM, Nicolas Lapomarda [EMAIL PROTECTED] wrote: The error I'm getting is random as well, but always takes the form *** -[NSCFString _entityForName]: unrecognized selector sent to instance xxx. You likely are not retaining an object that you expect to stay