From: ara.t.howard@... Date: 2006-10-16T08:49:49+09:00 Subject: Re: C Extension Cleanup On Mon, 16 Oct 2006, Justin Bonnar wrote: > It is. The problem is, it's called before freeing other wrapped > datastructures whose free funtions depend on the existance of the world > object. then those objects should have a reference to it - to prevent it from being freed by the gc... > I need to ensure that my free_my_global_object function isn't called until > all of my other objects have been freed. it just seems like you are delcaring normal ruby gc semantics - 'free it only when no references exist' - so the easiest thing might to to wrap it, set a class variable to that value, and have all your objects hold references to it. -a -- my religion is very simple. my religion is kindness. -- the dalai lama