• 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: NSString initWithFormat and stringWith
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString initWithFormat and stringWith


  • Subject: Re: NSString initWithFormat and stringWith
  • From: Alex Curylo <email@hidden>
  • Date: Wed, 27 May 2009 08:59:13 -0700


On 27-May-09, at 8:41 AM, email@hidden wrote:

Well I am trying to find where is my mistake, since sometimes my
application crashes and I am quite (99.9%) sure that I am releasing a
object that shouldn't be.

Any ideas how to find such a bug?

As long as the crashes happen when you're running under the debugger, if you set in Xcode the five global breakpoints I list here


http://www.alexcurylo.com/blog/2008/11/13/tip-debugging-exceptions/

you'll catch every fatal occurrence (every likely fatal occurrence, anyways...) at the moment it occurs. Deducing the probable cause is then *much* less challenging. Downright trivial, generally.

--
Alex Curylo -- email@hidden -- http://www.alexcurylo.com/

Programming is like sex...
One mistake and you support it the rest of your life.





_______________________________________________

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


  • Prev by Date: Re: NSString initWithFormat and stringWith
  • Next by Date: NSURLConnection sendSynchronousRequest and NSString stringWithContentsOfURL crashing under 10.5.7
  • Previous by thread: Re: NSString initWithFormat and stringWith
  • Next by thread: Re: NSString initWithFormat and stringWith
  • Index(es):
    • Date
    • Thread