From: Admin Tensor Date: 2012-06-01T01:49:47+09:00 Subject: Re: The last question about rb_gc_register_address(): a case in which in works with dynamic memory "IƱaki Baz Castillo" wrote in post #1062693: > objects = rb_ary_new(); > rb_gc_register_address(&objects); > > I really hope this is NOT possible. If not we are lost. This is, if I > create a VALUE in C land it cannot be GC'd in next C function. Hope > I'm right here. Hi, A long time ago (probably ten years ago) I got a reply from Matz that if 'objects' is on the stack, then it is protected (i.e., it will not be GC'ed). Regards, Bill -- Posted via http://www.ruby-forum.com/.