• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Garbage collected and non-garbage collected
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Garbage collected and non-garbage collected (From: Robert Mullen <email@hidden>)
 >Re: Garbage collected and non-garbage collected (From: "Sean McBride" <email@hidden>)
 >Re: Garbage collected and non-garbage collected (From: "I. Savant" <email@hidden>)
 >Re: Garbage collected and non-garbage collected (From: Robert Mullen <email@hidden>)
 >Re: Garbage collected and non-garbage collected (From: "I. Savant" <email@hidden>)
 >Re: Garbage collected and non-garbage collected (From: Robert Mullen <email@hidden>)
 >Re: Garbage collected and non-garbage collected (From: "I. Savant" <email@hidden>)
 >Re: Garbage collected and non-garbage collected (From: Robert Mullen <email@hidden>)
 >Re: Garbage collected and non-garbage collected (From: "I. Savant" <email@hidden>)
 >Re: Garbage collected and non-garbage collected (From: Bill Bumgarner <email@hidden>)
 >Re: Garbage collected and non-garbage collected (From: Robert Mullen <email@hidden>)
 >Re: Garbage collected and non-garbage collected (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: Re: Why does releasing this array cause a crash?
  • Next by Date: What is using up so much memory here?
  • Previous by thread: Re: Garbage collected and non-garbage collected
  • Next by thread: Re: Garbage collected and non-garbage collected
  • Index(es):
    • Date
    • Thread