alexgutteridge / rsruby

Ruby - R bridge.
http://rubyforge.org/projects/rsruby/
GNU Lesser General Public License v2.1
332 stars 59 forks source link

Added protection for R garbage collection when objects can still be accessed from Ruby #8

Closed aaronjg closed 12 years ago

aaronjg commented 12 years ago

If Ruby has access to an R object, that object needs to be protected until all pointers are removed. Thus it should be protected from R garbage collection until the pointer is garbage collected by Ruby.

This bug can cause big problems, particularly when working in "no conversion" mode.