Re: Passing param by reference then using within block throws exception
Re: Passing param by reference then using within block throws exception
- Subject: Re: Passing param by reference then using within block throws exception
- From: Jens Alfke <email@hidden>
- Date: Tue, 20 Sep 2016 23:29:37 -0700
I think the real problem is that the -enumerateObjectsUsingBlock: method has an autorelease pool. If your real code is assigning something other than a string constant to *fillMeIn, that string will probably get dealloced when the autorelease pool drains. Your workaround is correct, since assigning the string to noFillMeIn causes it to be retained.
—Jens
_______________________________________________
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