Re: NSLog preventing a crash?
Re: NSLog preventing a crash?
- Subject: Re: NSLog preventing a crash?
- From: Rob Chahin <email@hidden>
- Date: Tue, 24 Jul 2007 15:55:00 +0100
For the record, the crash is no longer an issue now that I send -
copy. It's entirely possible that I'm sending extra retains to
objects, as I tend to write functionality and then worry about retain
counts. I have memory leaks all over the place at the moment.
You seem to be over-retaining, so I'm sure that your crash is
caused by something else. Your code should look something like
this [...]
RCBlah *blah = [[RCBlah alloc] init]; // use of -new is
discouraged these days
Didn't know that - thanks.
Also, once you've fixed these methods, one way to help debug your
crash is to set NSZombieEnabled to YES in your build settings (see
<http://developer.apple.com/technotes/tn2004/tn2124.html> for some
good debugger tips, including NSZombieEnabled information). This
will help figure out if an object is being deallocated before you
can use it--and help to figure out which object.
Will do. Thanks for the suggestions.
- R
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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