Re: EXC_BAD_ACCESS and NSDocumentController
Re: EXC_BAD_ACCESS and NSDocumentController
- Subject: Re: EXC_BAD_ACCESS and NSDocumentController
- From: Charilaos Skiadas <email@hidden>
- Date: Fri, 15 Apr 2005 13:38:18 -0500
On Apr 15, 2005, at 12:20 PM, Ofri Wolfus wrote:
Hi,
I'm trying to create a document based app and i can't figure why i'm
getting a crash on launch in [NSDocumentController
makeUntitledDocumentOfType:] with EXC_BAD_ACCESS. I did nothing
unusual and i can't find what causes this.
Any ideas?
This error usually is caused because you refer to something that has
already been deallocated. Is can often happen if you forget to retain
an object that was autoreleased when it was created, and you try to
access it too late, i.e. after the pool has cleaned stuff up. It can
also happen if you release something more than you should, i.e. you
release an object that you did not own. This is a good read to start
from:
http://www.stepwise.com/Articles/Technical/HoldMe.html
Thanks,
Ofri
HTH,
Haris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden