From: Timothy Goddard Date: 2006-03-08T20:28:43+09:00 Subject: Re: pointer to c array in Ruby http://www.whytheluckystiff.net/ruby/pickaxe/html/ext_ruby.html This explains how to use Data_Wrap_Struct and how to manage garbage collection. The issue is not so much preventing garbage collection as making it possible.