• 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: "I. Savant" <email@hidden>
  • Date: Tue, 1 May 2007 06:45:25 -0400

On May 1, 2007, at 12:37 AM, Chataka wrote:
I am trying to fetch an array of managed objects but sometimes it crashes my app.

I'm *guessing* the problem is elsewhere in your code. Without more information, it's only a guess. It seems like a memory management problem somewhere "upstream". Suggestions:


1 - When posting an "it's crashing" thread, never forget to include the type of crash (basically, anything in your run log at the time).

2 - You seem to be leaking your fetch request (you're not releasing it) in your example; hopefully there's a release or autorelease somewhere after the lines you pasted.

3 - Have you stepped through this code with the debugger to see if everything's being handled correctly and that objects you expect to be there really are there? The debugger is your friend.

--
I.S.



_______________________________________________

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


  • Follow-Ups:
    • Re: Core Data fetch request crashes the app
      • From: Chataka <email@hidden>
  • Next by Date: extremely large number support
  • Next by thread: Re: Core Data fetch request crashes the app
  • Index(es):
    • Date
    • Thread