From: Scott Lembcke Date: 2006-07-25T07:20:12+09:00 Subject: Re: GC in C extension.... > Declaring the variable as rb_global_variable prevents Ruby from garbage > collecting it. How do I release it back to Ruby again? Is there a > rb_unset_global_variable? You can use rb_gc_register_address() and rb_gc_unregister_address(). I'm pretty sure that rb_gc_register_address() and rb_global_variable() are actually the same function, but don't quote me on that. -- Posted via http://www.ruby-forum.com/.