From: "Iñaki Baz Castillo" Date: 2011-02-06T18:53:29+09:00 Subject: Re: C extension: How to check if a VALUE is still alive (not being GC'ed)? 2011/2/6 Peter Zotov : > The easiest way would be to assign this pointer to the resolver object > as an instance variable (with rb_iv_set), or perhaps store it inside a > hash which maps request ID's to pointers, if you want to be able to use > the same resolver for several simultaneous callbacks. Yes, in fact I must do in order to avoid the Query object being GC'ed. So yes, better if I handle that hash internally within the resolver rather than letting the user accessing the hash. Thanks. -- Iñaki Baz Castillo