Re: drb recycled object problem
- From: Raj Sahae <rajsahae@xxxxxxxxx>
- Date: Wed, 28 Mar 2007 07:47:50 +0900
ara.t.howard@xxxxxxxx wrote:
On Wed, 28 Mar 2007, Brian Candler wrote: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.
$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
Raj
.
- References:
- drb recycled object problem
- From: Raj Sahae
- Re: drb recycled object problem
- From: Raj Sahae
- Re: drb recycled object problem
- From: ara . t . howard
- Re: drb recycled object problem
- From: Raj Sahae
- Re: drb recycled object problem
- From: Raj Sahae
- Re: drb recycled object problem
- From: ara . t . howard
- Re: drb recycled object problem
- From: Raj Sahae
- Re: drb recycled object problem
- From: Brian Candler
- Re: drb recycled object problem
- From: ara . t . howard
- drb recycled object problem
- Prev by Date: Re: Object/Relational Mapping is the Vietnam of Computer Science
- Next by Date: dynamically adding class variables
- Previous by thread: Re: drb recycled object problem
- Next by thread: Re: drb recycled object problem
- Index(es):
Relevant Pages
|