Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EXC_BAD_ACCESS in -[NSNetServiceBrowser _dispatchCallBack:flags:error:] ()



Hello Ruotger -

On Dec 20, 2005, at 5:29 AM, Ruotger Skupin wrote:

I got this bad access crash in my app. Any hints, what could have gone wrong?


[Switching to process 3134 local thread 0xf03]
[Switching to process 3134 local thread 0xf03]
Program received signal: "EXC_BAD_ACCESS".
(gdb) bt
#0 0xfffeff20 in objc_msgSend_rtp ()
#1 0x9295d03c in -[NSNetServiceBrowser _dispatchCallBack:flags:error:] ()
#2 0x9295cea0 in _netServiceBrowserDispatchCallBack ()
#3 0x90f24dc8 in _BrowseReply ()

The most likely thing is that the delegate of the NSNetServiceBrowser has been released & the NSNetServiceBrowser is still expecting it to be there.


If your delegate is going to go away, you'll have to call - [NSNetServiceBrowser setDelegate:] with 'nil' as the parameter to ensure that the browser doesn't try to send messages to a dead object.

.chris

--
Chris Parker
Cocoa Frameworks
Apple Computer, Inc.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bonjour-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/bonjour-dev/email@hidden

This email sent to email@hidden
References: 
 >EXC_BAD_ACCESS in -[NSNetServiceBrowser _dispatchCallBack:flags:error:] () (From: Ruotger Skupin <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.