On 12 Nov 2012, at 17:19, Jerry Krinock <je...@ieee.org> wrote:

> I'm debugging a crash in a large project which evidence indicates is caused 
> by a retain/release imbalance.  The project is written with manual 
> retain/release, not ARC.
> 
> The project is built in Xcode 4.5.2, and when I 'Analyze', I get no warnings 
> pertaining to memory management.  So the problem must be some edge case which 
> is not caught by 'Analyze'.  Further, I think that ARC is built upon 
> 'Analyze', and therefore if I converted this project to ARC, it would still 
> crash.
> 
> Am I correct?

Yes, ARC is significantly smarter than analyse.  ARC is guaranteed to get 
memory management right (modulo retain cycles and weak refs that shouldn't be 
weak).  Meanwhile the analyser is trying to understand what *you* did to try 
and make memory management right, which is a much much harder task.

Tom Davie
_______________________________________________

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