Re: Garbage collected and non-garbage collected
Re: Garbage collected and non-garbage collected
- Subject: Re: Garbage collected and non-garbage collected
- From: "Sean McBride" <email@hidden>
- Date: Tue, 10 Mar 2009 18:55:13 -0400
- Organization: Rogue Research Inc.
On 3/10/09 3:46 PM, Bill Bumgarner said:
>Also -- look through the -dealloc methods in the framework. You'll
>want to create a -finalize for any that do anything beyond -release of
>objects/[super dealloc] (Though you don't need to unregister
>notification observers).
>
>- free()s & CFRelease()s can be copied directly to -finalize
Bill,
This reminds me.... Do you know if one can safely call IOObjectRelease()
in finalize? The docs do not say if that function is thread-safe.
<rdar://problem/6307385>. I have a real life situation where
IOObjectRelease() is called in dealloc, but in GC I'm erring on the side
of caution and leaking.
Cheers,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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