• 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: EXC_BAD_ACCESS with NSDate?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EXC_BAD_ACCESS with NSDate?


  • Subject: Re: EXC_BAD_ACCESS with NSDate?
  • From: Nick Zitzmann <email@hidden>
  • Date: Mon, 29 Dec 2003 18:37:21 -0800

On Dec 29, 2003, at 4:33 PM, Jonathan del Strother wrote:

However, on the 3rd time through, the app crashes, claiming that it
'has exited due to signal 10 (SIGBUS).'
If I debug the app, it tells me 'Program received signal:
"EXC_BAD_ACCESS".', when it reaches the line marked with !!! in the
above code.

That's probably because you're not retaining the date, and the autorelease pool is deallocating it. Try retaining the new date and releasing the old date when it needs to be updated.

Nick Zitzmann
<http://seiryu.home.comcast.net/>
S/MIME signature available upon request

"That's a funny thing to promise. Well, you can't never let anything happen to him [Nemo]; then, nothing would ever happen to him." - Dory, from the movie "Finding Nemo"
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >EXC_BAD_ACCESS with NSDate? (From: Jonathan del Strother <email@hidden>)

  • Prev by Date: [ANN] Mulle kybernetiK - Optimizing Objective-C code - Articles #3.1 + #9 online
  • Next by Date: AppleScript and ToManyRelationships
  • Previous by thread: EXC_BAD_ACCESS with NSDate?
  • Next by thread: [ANN] Mulle kybernetiK - Optimizing Objective-C code - Articles #3.1 + #9 online
  • Index(es):
    • Date
    • Thread