Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data fetch request crashes the app



could be a memory management issue, but so far, all I know is the
fact that my app crashes
when the method is called right after a managed object is removed.

If an object isn't retained properly and is released while other objects still have references to it, when those other objects attempt to access it, the program may crash. So, like Savant said, although the debugger is telling you that your application is crashing at the executeFetchRequest:error: method, the crash itself probably resulted because of some memory management problem earlier on.

Simple memory management rules:

<http://www.stepwise.com/Articles/Technical/2001-03-11.01.html>

Apple's Docs on memory management:

<http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Tasks/MemoryManagementRules.html>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: Core Data fetch request crashes the app (From: "I. Savant" <email@hidden>)
 >Re: Core Data fetch request crashes the app (From: Chataka <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.