• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSLog preventing a crash?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSLog preventing a crash?
      • From: "Shawn Erickson" <email@hidden>
References: 
 >NSLog preventing a crash? (From: Rob Chahin <email@hidden>)
 >Re: NSLog preventing a crash? (From: Rob Chahin <email@hidden>)
 >Re: NSLog preventing a crash? (From: Shawn Erickson <email@hidden>)
 >Re: NSLog preventing a crash? (From: Rob Chahin <email@hidden>)
 >Re: NSLog preventing a crash? (From: Andrew Merenbach <email@hidden>)

  • Prev by Date: Re: How should my controller objects reference eachother?
  • Next by Date: RE: How to get custom widgets into nib file window ?
  • Previous by thread: Re: NSLog preventing a crash?
  • Next by thread: Re: NSLog preventing a crash?
  • Index(es):
    • Date
    • Thread