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



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

This email sent to 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.