• 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: After Autoreleasing Still Getting Leaked
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: After Autoreleasing Still Getting Leaked


  • Subject: Re: After Autoreleasing Still Getting Leaked
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 15 Jun 2011 11:38:37 -0700

What Scott said.

Also, have you tried the "Build & Analyze" command in Xcode 3 (“Analyze” in Xcode 4)? It can detect a lot of common refcounting errors at compile time.

Also also, be aware that creating an NSString from UTF-8 data can result in a nil string if the data is not valid UTF-8. This can happen if the packet gets corrupted in transit or if something else is accidentally or maliciously sending unexpected data to your port. To be robust, your code should detect this and (probably) just ignore the packet.

—Jens

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: After Autoreleasing Still Getting Leaked
      • From: Scott Ribe <email@hidden>
References: 
 >After Autoreleasing Still Getting Leaked (From: Bing Li <email@hidden>)
 >Re: After Autoreleasing Still Getting Leaked (From: Scott Ribe <email@hidden>)
 >Re: After Autoreleasing Still Getting Leaked (From: Bing Li <email@hidden>)
 >Re: After Autoreleasing Still Getting Leaked (From: Scott Ribe <email@hidden>)

  • Prev by Date: Re: Drawing noise in Cocoa (preferably fast)
  • Next by Date: Re: Drawing noise in Cocoa (preferably fast)
  • Previous by thread: Re: After Autoreleasing Still Getting Leaked
  • Next by thread: Re: After Autoreleasing Still Getting Leaked
  • Index(es):
    • Date
    • Thread