Re: EXC_BAD_ACCESS with NSAutoReleasePool, NSThread and NSThreadWillExitNotification
Re: EXC_BAD_ACCESS with NSAutoReleasePool, NSThread and NSThreadWillExitNotification
- Subject: Re: EXC_BAD_ACCESS with NSAutoReleasePool, NSThread and NSThreadWillExitNotification
- From: John Zorko <email@hidden>
- Date: Tue, 14 Oct 2008 12:02:01 -0700
Jonathan et al,
Yup -- that was exactly it -- had nothing to do with the thread,
even ... I had instantiated something and made it autorelease, but
then proceeded to release it myself anyway like a doof.
On Oct 14, 2008, at 7:47 AM, Jonathan del Strother wrote:
On Tue, Oct 14, 2008 at 3:38 PM, John Zorko <email@hidden> wrote:
Hello, all ...
I'm experiencing a crash after a thread exits.
Program received signal: "EXC_BAD_ACCESS".
(gdb) bt
#0 0x300c8c18 in objc_msgSend ()
#1 0x3067073a in NSPopAutoreleasePool ()
#2 0x306770ea in __NSFinalizeThreadData ()
#3 0x31446f6e in _pthread_tsd_cleanup ()
#4 0x31449ae4 in _pthread_exit ()
#5 0x3144b7e8 in pthread_exit ()
#6 0x30676e66 in +[NSThread exit] ()
#7 0x30673444 in __NSThread__main__ ()
#8 0x3144a824 in _pthread_body ()
#9 0x00000000 in ?? ()
(gdb)
....
You're probably over-releasing something. Turn on NSZombieEnabled to
find out what.
http://developer.apple.com/technotes/tn2004/tn2124.html
Regards,
John
Falling You - exploring the beauty of voice and sound
http://www.fallingyou.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden