Hello there,

I'm using SWIG to make Ruby binding for Qt library.
(http://sfns.u-shizuoka-ken.ac.jp/geneng/horie_hp/ruby/index.html)

I think SWIG is very useful to import C++ library to ruby. But there are some
disadvantages to use SWIG especially with C++ library. ( I made my own
modified version of SWIG for this purpose)  The disadvantage I encountered is
that ruby's GC delete C++ object bring to ruby by pointer or alias.  Sometimes
it causes segmentation fault because ruby delete a C++ object that should not be
deleted.  So, I made a patch for SWIG that makes SWIG not to use a function for
free memory when SWIG import C++ object brought by pointer or alias to ruby
object.

This patch is available from my home page.

--
Nobuyuki Horie, Ph.D.
Lab. Genetic Engineering/Univ. of Shizuoka
mail: horie / smail.u-shizuoka-ken.ac.jp
home page: http://www.u-shizuoka-ken.ac.jp