Re: Will TCL release the variables automatically when the procedure is finished?



Hi, All,
Thanks so much for all your replies!! You guys are really awesome!!

(1):
The only reason I'm using the "global S Grad_S" is I don't want to
unset them while executing:
foreach var [info locals] {
unset $var
}

(2): I'm now using NAMD 2.6.
vecadd : vector addition
vecsub : vector subtraction
vecscale : scale a vector with a scalar
vecdot : vector dot product
These functions are all implemented in NAMD using C++, I think. And I
haven't took a look at how it works.(Sorry, I should do this)

(3)
If I were to guess, I'd say one of these fails to
decrement properly the refcount of these returned vectors, which leads
to systematic leaks.

This is really a good point.

Please tell me which version of NAMD you're using, I'll take a peek
inside.

Thank you so much for doing this.


Bin

.