• 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: CLLocationManager-related crash in iOS 5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CLLocationManager-related crash in iOS 5


  • Subject: Re: CLLocationManager-related crash in iOS 5
  • From: "Glenn L. Austin" <email@hidden>
  • Date: Fri, 14 Oct 2011 07:55:41 -0700

If you're autoreleasing the object when you're called back, you should reset the object's delegate (set it to nil) before autoreleasing it (and set your instance variable to nil, if you have one) -- or just keep the object around until -dealloc.

On Oct 14, 2011, at 2:31 AM, Rick Mann wrote:

> I figured out a little bit more. I make one request for location, then I call -stopUpdatingLocation and -autorelease the CLLocationManager from within the did-update callback.
>
> But in iOS 5, even after that, it still calls me back once more, at which time I'm -autoreleasing it a second time.
>
> Is this a bug?

--
Glenn L. Austin, Computer Wizard and Race Car Driver         <><
"Where there's breath, there's hope!"
<http://www.austin-soft.com>

_______________________________________________

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: CLLocationManager-related crash in iOS 5
      • From: Rick Mann <email@hidden>
References: 
 >CLLocationManager-related crash in iOS 5 (From: Rick Mann <email@hidden>)
 >Re: CLLocationManager-related crash in iOS 5 (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Reusing XCode 4 Core Data Model.
  • Next by Date: Re: CLLocationManager-related crash in iOS 5
  • Previous by thread: Re: CLLocationManager-related crash in iOS 5
  • Next by thread: Re: CLLocationManager-related crash in iOS 5
  • Index(es):
    • Date
    • Thread