Re: EXC_BAD_ACCESS with NSDate?
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.