[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [swarm-hackers] Memory leak in Swarm

From: glen e. p. ropella
Subject: Re: [swarm-hackers] Memory leak in Swarm
Date: Fri, 03 Oct 2008 14:59:43 -0700
User-agent: Thunderbird (X11/20080914)

Thus spake Steve Railsback circa 10/03/2008 02:42 PM:
> Apparently when you call Symbol getName, the method uses a string dup
> that leaves a string in the scratch zone.
> Perhaps Scott or somebody mucking in the code could deactivate that
> feature?

Well, there are reasons to keep it that way as long as it's well
documented.  You don't necessarily want the caller to be encouraged to
change the name of an object.  Rather than disabling it, perhaps it
could be made clear to the caller that they need to free the string when
they're done with it?

Also, if it annoys you, you can always create your own root object and
root swarm that override the getName method to do what you want.  That's
what we did with the liver model.

glen e. p. ropella, 971-219-3846, http://tempusdictum.com

reply via email to

[Prev in Thread] Current Thread [Next in Thread]