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

Re: ARC Retain Cycles


  • Subject: Re: ARC Retain Cycles
  • From: Dave <email@hidden>
  • Date: Mon, 21 Apr 2014 20:34:04 +0100

Confusing results.

I changed the property in question:

@property (nonatomic,assign)		id			payloadObject;

Ran leaks again and it reported another cycle - same thing, so I fixed that one too and ran leaks again, which now shows no cycles/leaks.

Before when the test finished running this under the debugger, it showed 130.4 MB allocated (in XCode not Leaks) after the test had completed. When the test completes, everything should be released, IOW, the test stores no objects beyond the local method, no properties etc. The network manager may allocate stuff that it keeps for inself, but they should be minor. However, when the test completes it shows 73.1 MB allocated  (in XCode not Leaks), however,  when I run it under the profiles/leaks I see no reported leak problems.

I’m a lost to explain why something is still being retained.

The hierarchy of the control flow is as following:

AppDeletegate—>HomeVC—>TestDownload

The viewDidAppear method allocates the TestDownload object and calls method “Test1” in that class.

Test1 Calls another method on a background thread that does the download.

The test takes an Array of URLs that point to images, downloads the image and does nothing with it.

the kernal of it is something like this;


UIImage* myImage;

for (myURL in myArray)
	{
	myImage = [self.pNetworkManger syncDownloadImageFromURL:myURL];
	}

There are around 650 URLs/Images in the Array/

I’m still digging!

Cheers
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: Roland King <email@hidden>
References: 
 >ARC Retain Cycles (From: Dave <email@hidden>)
 >Re: ARC Retain Cycles (From: Cody Garvin <email@hidden>)
 >Re: ARC Retain Cycles (From: Quincey Morris <email@hidden>)
 >Re: ARC Retain Cycles (From: Dave <email@hidden>)
 >Re: ARC Retain Cycles (From: Quincey Morris <email@hidden>)
 >Re: ARC Retain Cycles (From: Dave <email@hidden>)
 >Re: ARC Retain Cycles (From: Roland King <email@hidden>)
 >Re: ARC Retain Cycles (From: Dave <email@hidden>)
 >Re: ARC Retain Cycles (From: Roland King <email@hidden>)
 >Re: ARC Retain Cycles (From: Dave <email@hidden>)
 >Re: ARC Retain Cycles (From: Keary Suska <email@hidden>)
 >Re: ARC Retain Cycles (From: Dave <email@hidden>)

  • Prev by Date: Re: ARC Retain Cycles
  • Next by Date: Re: ARC Retain Cycles
  • Previous by thread: Re: ARC Retain Cycles
  • Next by thread: Re: ARC Retain Cycles
  • Index(es):
    • Date
    • Thread