• 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: Passing param by reference then using within block throws exception
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Passing param by reference then using within block throws exception


  • Subject: Re: Passing param by reference then using within block throws exception
  • From: Steve Mills <email@hidden>
  • Date: Wed, 21 Sep 2016 14:22:49 +0000 (GMT)

On Sep 21, 2016, at 08:53 AM, Alex Zavatone <email@hidden> wrote:

Stab in the dark here, but I'm stabbing blank. Is there an Instruments tool or debugging option to detect this?
Thanks for getting stabby. Fourvel appreciates it (only relevant if you're a CBB fan). It doesn't appear that anything will detect this. When zombies is on, it says an address is attempting to be retained but was previously released. That's a bit of a red herring, since the only 2 variables being uses have just been declared and initialized right before the call to the method. If anything, the process of converting to ARC or the static analyzer should've flagged this as a problem.

Sent from iCloud's ridiculous UI, so, sorry about the formatting

 
_______________________________________________

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: Re: Passing param by reference then using within block throws exception
      • From: Kyle Sluder <email@hidden>
References: 
 >Re: Passing param by reference then using within block throws exception (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: Passing param by reference then using within block throws exception
  • Next by Date: Re: Conditionally declaring a BOOL in a .m file to be accessed in a .c function
  • Previous by thread: Re: Passing param by reference then using within block throws exception
  • Next by thread: Re: Re: Passing param by reference then using within block throws exception
  • Index(es):
    • Date
    • Thread