From: Raj Sahae Date: 2007-03-28T07:47:50+09:00 Subject: Re: drb recycled object problem ara.t.howard@noaa.gov wrote: > On Wed, 28 Mar 2007, Brian Candler wrote: >> >> $foo = server.game >> DRb.start_service($uri, $foo) >> >> Keeping a reference to the object in global variable $foo is one way >> to stop >> it frm being garbage collected. >> >> A local variable is fine, as long as it doesn't drop out of scope: e.g. >> >> foo = server.game >> DRb.start_service($uri, foo) >> DRb.thread.join # program waits here > > drb itself holds a referent to this, the 'front', object - so i don't > think > that'll help too much. i'm guessing the game returns result objects > of some > type which are recycled in the server while the client tries to re-use > them. > > cheers. > > -a Thanks guys. I'll keep these tips in mind while I keep digging through my code, trying to find if I let go of a reference somewhere. Raj