Re: Releasing objects causes BAD_ACCESS

2008-07-07 Thread Scott Ribe
> the connection object as well as the receivedData object are released
> in the connectionDidFinishLoading delegate

The sample also retains receivedData after creating the connection. Did you
do that? And did you create the connection using alloc initxxx?


-- 
Scott Ribe
[EMAIL PROTECTED]
http://www.killerbytes.com/
(303) 722-0567 voice


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Releasing objects causes BAD_ACCESS

2008-07-07 Thread Randall Meadows

On Jul 7, 2008, at 3:49 PM, Randall Meadows wrote:


NSZombieEnabled is a good start -
http://developer.apple.com/technotes/tn2004/tn2124.html#SECFOUNDATION


See also "Technical Note TN2124 - Mac OS X Debugging Magic":



Heh, which now I see was the aforementioned link...I just saw the  
tn2004 and didn't read the URL further.


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Releasing objects causes BAD_ACCESS

2008-07-07 Thread Randall Meadows

On Jul 7, 2008, at 3:44 PM, Jonathan del Strother wrote:
On Mon, Jul 7, 2008 at 10:38 PM, Meik Schuetz <[EMAIL PROTECTED]>  
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":

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Releasing objects causes BAD_ACCESS

2008-07-07 Thread Jonathan del Strother
On Mon, Jul 7, 2008 at 10:38 PM, Meik Schuetz <[EMAIL PROTECTED]> wrote:
> Dear all,
>
> 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
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Releasing objects causes BAD_ACCESS

2008-07-07 Thread Meik Schuetz

Dear all,

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?


Thanks so much
Best regards
Meik

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]