• 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
ARC Retain Cycles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ARC Retain Cycles


  • Subject: ARC Retain Cycles
  • From: Dave <email@hidden>
  • Date: Sun, 20 Apr 2014 19:52:44 +0100

Hi,

I have a inheriated an Application that I converted to use ARC. When I run it now, I see that memory is being allocated and not released. At least, when I run the App with the debugger view active, I see the memory growing and growing when I do some intensive Image Downloads as a test for the network layer (I’ve not run it under the Profiler yet).

Since this is ARC, I’m guessing that the Leak is caused by some kind of retain cycle that is holding onto the image data after the network layer is finished with it.

My question is, what is the best/easiest way to detect these issues under ARC? I’ve had quite a lot of experience doing this with non-ARC projects, but never had this problem before using ARC. Under non-arc, if push came to shove, I’d override retain/release etc. and add logging which usually showed up the problem quickly. Of course I can’t do that anymore now I’ve converted it to ARC.

The Network Layer has a lot of prooperties that have the retain attribute (I’ve not changed them to strong), I’m sure it’s something to do with either a retain cycle, but there’s so much code it’s hard to see the wood from the trees.

Thanks in advance for any suggestions or help.

All the Best
Dave


_______________________________________________

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: ARC Retain Cycles
      • From: Cody Garvin <email@hidden>
  • Prev by Date: Getting an index for NSMutableAttributed string using tags in RTF
  • Next by Date: canAsynchronouslyWriteToURL:ofType:forSaveOperation: Prevent Quit?
  • Previous by thread: Re: Getting an index for NSMutableAttributed string using tags in RTF
  • Next by thread: Re: ARC Retain Cycles
  • Index(es):
    • Date
    • Thread