• 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 debugging
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Core Data debugging
      • From: BJ Homer <email@hidden>
References: 
 >Re: Core Data debugging (From: email@hidden)

  • Prev by Date: Windowed Video
  • Next by Date: Re: Windowed Video
  • Previous by thread: Re: Core Data debugging
  • Next by thread: Re: Core Data debugging
  • Index(es):
    • Date
    • Thread