Re: What's most common cause of SIGSEGV and SIGBUS
Re: What's most common cause of SIGSEGV and SIGBUS
- Subject: Re: What's most common cause of SIGSEGV and SIGBUS
- From: Julien Dufour <email@hidden>
- Date: Sun, 14 Mar 2004 04:37:45 +0100
On Mar 14, 2004, at 2:26, Ken Tozier wrote:
Hello
I wrote a WebView policy delegate which always runs once then crashes
the app with either SIGSEGV or SIGBUS. Best I can figure is that
somehow the class the delegate calls is dealloc'd more than once, but
the only dealloc I explicitly define is in the document window dealloc
method, so I'm not doing it.
Any insights?
Simple question: are you sure your object is correctly retained? (the
first time it works because it has been autoreleased, the next time the
object has been deallocated and the code crashes).
If you can't figure out from the code, you can place break points in
the retain, release, autorelease and dealloc methods of the class whose
instances are incorrectly dealloced. Override temporarily the methods
in order to set the break points (don't forget to call super). You can
then use the debugger to know what is happening and who is doing it.
"but the only dealloc I explicitly define", I guess you mean "release".
Ken
Best regards.
Julien Dufour
Inferiis -
http://www.inferiis.com
_______________________________________________
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.