Re: Windows get released on 10.6, leak on 10.7
Re: Windows get released on 10.6, leak on 10.7
- Subject: Re: Windows get released on 10.6, leak on 10.7
- From: Corbin Dunn <email@hidden>
- Date: Thu, 21 Jul 2011 15:40:50 -0700
On Jul 21, 2011, at 1:16 PM, Ross Carter wrote:
>> Just a long shot, but does this have anything to do with the new ARC (Automatic Reference Counting)?
>
> Joanna: The app uses GC, and was built long before ARC was announced. Everything gets collected on 10.6. I'm puzzled how ARC could affect GC.
>
>
>> Have you used Instruments to find out why? If not, then use the object alloc instrument with reference counting turned on. Then look at your window objects and try and figure out where the extra retain is happening.
>
>
> Nick: It's a GC app, so -retain is a no-op. My Instruments foo is not strong. What tool will show why an object is not getting collected?
>
Log the address of your object. Then, break in gdb and do:
info gc-roots <address>
Then see what is rooting it. also, try gc-references in it to see what references it, but roots are more important.
corbin
_______________________________________________
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