• 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
Re: Core Data fetch request crashes the app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data fetch request crashes the app


  • Subject: Re: Core Data fetch request crashes the app
  • From: "Joshua Pennington" <email@hidden>
  • Date: Tue, 1 May 2007 19:28:57 -0500

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:
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>)

  • Prev by Date: Re: NSTableView binding
  • Next by Date: Bindings crash on quit.
  • Previous by thread: Re: Core Data fetch request crashes the app
  • Next by thread: extremely large number support
  • Index(es):
    • Date
    • Thread