From: KUBO Takehiro Date: 2006-07-25T21:31:07+09:00 Subject: Re: GC in C extension.... "jared.r.richardson@gmail.com" writes: > In my C code I have a VALUE result_set that I set = ary_ary_new with > each call to the database. I put new VALUE objects in this result set. > After a bit, howevever, the VALUE objects I'm putting into the result > set become invalid. It appears that GC was reaping them. How about "volatile VALUE result_set;"? See: http://wiki.rubygarden.org/Ruby/page/show/GCAndExtensions