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 (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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com