Re: Releasing objects causes BAD_ACCESS
Re: Releasing objects causes BAD_ACCESS
- Subject: Re: Releasing objects causes BAD_ACCESS
- From: Randall Meadows <email@hidden>
- Date: Mon, 7 Jul 2008 15:49:50 -0600
On Jul 7, 2008, at 3:44 PM, Jonathan del Strother wrote:
On Mon, Jul 7, 2008 at 10:38 PM, Meik Schuetz <email@hidden>
wrote:
according to the document
http://developer.apple.com/documentation/Cocoa/Conceptual/URLLoadingSystem/Tasks/UsingNSURLConnection.html
the connection object as well as the receivedData object are
released in the
connectionDidFinishLoading delegate. However, while debugging, I
receive an
BAD_ACCESS violation doing the release. Can anyone please give me
some
insight on why this is happening? Is there any strategy/ debugging
tool that
helps me to find objects that should have been released or should I
just
rely on GC?
NSZombieEnabled is a good start -
http://developer.apple.com/technotes/tn2004/tn2124.html#SECFOUNDATION
See also "Technical Note TN2124 - Mac OS X Debugging Magic":
<http://developer.apple.com/technotes/tn2004/tn2124.html>
_______________________________________________
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