On Fri, Jul 11, 2003 at 12:11:45PM -0700, Stephen Nelson wrote:
> Problem solved. 
> 
> I had a MockSession (POE implementation of a MockObject) that was
> holding a reference to a session.
> 
> Making it not hold that reference solved the problem. As a general
> solution, I'll have MockSession stringify sessions and closures.

Perl references are reused fairly quickly.  A stringified reference to
one session may become a valid reference to a different session in short
order.  If this doesn't matter, good. :)

In some cases it does matter, though.  If yours is one of them, consider
storing/keying things on $session->ID().  Those are guaranteed not to
repeat until integer overflow occurs.

-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/

Reply via email to