On 5/3/07, Yusuf Celik <ycelik / oytek.com.tr> wrote:
> Thanks Robert,
>
> But, without #{ObjectSpace._id2ref(id)}  no problem.
> You think this statement locks the object in memory.
>
> Thanks again
> yc
>
> Robert Klemme wrote:
> > Your finalizers lock the object in memory.  You can find a recent
> > discussion about the topic in the archives.
> >
> > Please note also that you are defining three finalizers for a single
> > instance which is probably not what you want.
> >
> > Kind regards
> >
> >   robert
>
>
> --
> Posted via http://www.ruby-forum.com/.
>
>

it is pretty well documented that you cannot do that.  From the docs
of ObjectSpace._id2ref:

Converts an object id to a reference to the object. May not be
     called on an object id passed as a parameter to a finalizer.

-- 
Chris Carter
concentrationstudios.com
brynmawrcs.com