Subj : Re: Custom C++ objects with references and garbage collecting in To : Shanti Rao From : Mads Bondo Dydensborg Date : Tue Mar 29 2005 08:18 am Shanti Rao skrev: First, thanks for you reply, sorry about the late answer, have been away on easter holiday. > Hi Mads, > > I solved this problem by using smart pointers. The code is at > http://www.jsdb.org/jsdb.h and it works something like this: Arh, yes, that may be a solution too. In fact, I am already using smart pointers to ensure that objects passed from C++ to the JS engine does not get GC'ed away. It would be great if there was an easier way. I think I will start out with BEs suggestion of using a .parent property. Thanks Mads .