• 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: Robert Mullen <email@hidden>
  • Date: Tue, 10 Mar 2009 11:16:05 -0700

Going non-GC is not an option for our main project so my only hope with said framework is to correct it myself. I have been able to do a little debugging but I dead end with a BAD_ACCESS which I guess is to be expected with this sort of thing. I will have to see if I can narrow the problem but I may be out of my depth as a fairly new OC/ Cocoa guy.

Thanks for the tips all.

On Mar 10, 2009, at 10:46 AM, I. Savant wrote:

On Tue, Mar 10, 2009 at 1:32 PM, Sean McBride <sean@rogue- research.com> wrote:

You'll have to do a code review and testing of the framework's code to
make sure it supports both GC and RR.

Unfortunately this is true. Not just for frameworks, but any plug-ins those frameworks might load.

 A new, small internal project started awhile back seemed like the
perfect opportunity to try out GC in a production app. This app used
QTKit, but users needed the Flip4Mac plug-in to work with WMA files.
At the time (I have no idea about now), any time QuickTime tried to
load the Flip4Mac plug-in, it would die horribly. I reverted to good
old-fashioned memory management for two reasons:

1 - I couldn't wait for the plug-in to be updated to support this
(assuming it ever would be).
2 - I could see no way of nicely handling the situation even if the
plug-in was updated, since some users would inevitably be using an
older version ... because they may have forgotten (or not even known)
the plug-in was installed, or what it even was by name.

 I have to admit, it was a *totally* unexpected problem that I was
lucky to have noticed (because I had the plug-in installed for
personal use) before investing much time and having to retro-fit
everything with memory management.

 If you're looking for more details (the specific failure, behavior,
whether it could have been caught and handled properly), I have none.
It was right around Leopard's release and was a quick-and-dirty
project, so I didn't bother studying the problem beyond, "Oh, that
won't work. Back to the tried-and-true". Sorry.

--
I.S.


_______________________________________________

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


  • Follow-Ups:
    • Re: Garbage collected and non-garbage collected
      • From: "I. Savant" <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>)

  • Prev by Date: Re: NSSlider changed notification
  • Next by Date: NSMutableDictionary drives me mad.
  • Previous by thread: Re: Garbage collected and non-garbage collected
  • Next by thread: Re: Garbage collected and non-garbage collected
  • Index(es):
    • Date
    • Thread