From: ts Date: 2006-03-13T22:38:03+09:00 Subject: Re: Extension module: Why does object get GCed? >>>>> "p" == pseudoman4 writes: p> i know that ruby_obj goes out of scope when the function exit. But that p> should NOT affect the ruby object should it? After the function exit anything can be put at this address. This mean that the GC will not mark the ruby object (the address don't reference it any more) and logically it remove it at the sweep phase. Guy Decoux