Re: Live_Objects behavior depends on garbage collection timing

[prev] [thread] [next] [Date index for 2004/07/09]

From: Perrin Harkins
Subject: Re: Live_Objects behavior depends on garbage collection timing
Date: 22:31 on 09 Jul 2004
On Fri, 2004-07-09 at 18:17, Siamak Pazirandeh wrote:
> Sorry about not clarifying, but the card object remains "Live" even if
> I don't keep a local var pointed to it, and even if I return "1" from
> the block. That's why I suspect has_a as the culprit. 
> 
> Here is a revised version of example 4:
> 
> -----------
> do {
> 	Class::DBI::card->retrieve(25189);
> 	if (my $hh=Class::DBI::html->retrieve(25189)) {
> 	$hh->html;
> 	}
> 	1;
> };
> print STDERR Class::DBI->dump_object_index();

Okay, but I'm still confused about why you're calling
Class::DBI::card->retrieve(25189) in the beginning.  Doesn't $hh->html()
already fetch that object?  What happens if you take that line out?

- Perrin

(message missing)

Re: Live_Objects behavior depends on garbage collection timing
Perrin Harkins 22:31 on 09 Jul 2004

Generated at 11:35 on 01 Dec 2004 by mariachi v0.52