• 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: "Cannot finalize a class object"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Cannot finalize a class object"


  • Subject: Re: "Cannot finalize a class object"
  • From: Bill Bumgarner <email@hidden>
  • Date: Wed, 07 Jan 2009 10:51:00 -0800

On Jan 6, 2009, at 9:08 PM, Nick Zitzmann wrote:
The first thing it does is it calls objc_startCollectorThread() at the top of main(). Then later on in main(), I call an object's class method. Shortly afterward, I get the strangest exception on the collector thread:

*** +[CHException<0x1038140> finalize]: cannot finalize a class object

I wish I could ignore this, but unfortunately, the collector doesn't seem to recover from finalization exceptions very well, and the app crashes when attempting to allocate some scanned memory shortly afterward. I can take out this class method; it's not terribly important to the program's execution, but why is this happening and how do I work around this (other than taking it out)?

That is bizarre. Please file a bug and attach the binary or, better, a simple source example (but, really, binary is sufficient).


thanks,
b.bum

_______________________________________________

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: 
 >"Cannot finalize a class object" (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: getting NSTableView -selectedColumn or -selectedCell
  • Next by Date: Re: Python-Cocoa Development
  • Previous by thread: "Cannot finalize a class object"
  • Next by thread: NSColorWell----please help
  • Index(es):
    • Date
    • Thread