"Cannot finalize a class object"
"Cannot finalize a class object"
- Subject: "Cannot finalize a class object"
- From: Nick Zitzmann <email@hidden>
- Date: Tue, 6 Jan 2009 22:08:32 -0700
I've searched around and found nothing useful. I'm working on a non-
GUI Foundation application (thus no NSApplication or window server
connection), and thought I'd turn on GC in the app.
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)?
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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