Re: Core Data debugging
Re: Core Data debugging
- Subject: Re: Core Data debugging
- From: Fritz Anderson <email@hidden>
- Date: Thu, 16 Jul 2009 09:03:11 -0500
On 15 Jul 2009, at 6:14 PM, email@hidden wrote:
(gdb) po err
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x922e668c in objc_msgSend ()
(Earlier:)
NSError *err;
BOOL result = [moc save: &err];
Are you sure moc isn't nil? Messages to nil yield zero-valued results,
so result would be NO, but err would not be set.
And I'm sure you've checked it, but have you made sure result is NO?
Methods taking NSError ** don't return valid error objects unless they
have failed.
— F
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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