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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to