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
Delivered-to: email@hidden
Delivered-to: email@hidden
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uin6n9GJp9UGMYVrHb15L46WTbVCp7SACatXx3sAm3CXsMO6tp2mowNpZ4JW2agAyWoxkP005H/qRLctd5sxx3eF1N0di6AMjpy3SleIWHUPrOc/FGpuzaOEJOR0QtyTCsqZt9pXuB5+MNxxCHLhhLPNkZNMq3R2z3eOTbjw46U=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=OxUffm1YW9JN/HXFfcUOn5MItb2fXnV5y3zrzD4ZJEYgfOs8MH8E+96KnLjwKd5iM6quwB1VaI7Un32DqgvE2KoLGyChxeWtddPkVDun+1wOJDlXx0MRr82m7GC4lHji/FSJVrFGW1GQ17DTcjlzkFN/5VZRxUqxHnLFj+JLlGw=
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
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.