On 15 Jul 2009, at 6:14 PM, [email protected] 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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to