Re: EXC_BAD_ACCESS and NSDocumentController
Re: EXC_BAD_ACCESS and NSDocumentController
- Subject: Re: EXC_BAD_ACCESS and NSDocumentController
- From: Ofri Wolfus <email@hidden>
- Date: Sat, 16 Apr 2005 12:43:43 +0300
- Resent-date: Sat, 16 Apr 2005 13:49:04 +0300
- Resent-from: Ofri Wolfus <email@hidden>
- Resent-message-id: <email@hidden>
- Resent-to: email@hidden
Thanks but i know that.
The problem is that the crash happens before any code i wrote is
executed. It happens on launch in the first call to
[NSDocumentController makeUntitledDocumentOfType:] and i can't figure
why. i have only some basic bindings in my document but as far as i can
tell the first document never even gets instantiated.
Ofri
On 15/04/2005, at 21:38, Charilaos Skiadas wrote:
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