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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to