Re: Will TCL release the variables automatically when the procedure is finished?
- From: bingo <zhngbn@xxxxxxxxx>
- Date: Fri, 12 Sep 2008 13:16:40 -0700 (PDT)
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
.
- Follow-Ups:
- Re: Will TCL release the variables automatically when the procedure is finished?
- From: Alexandre Ferrieux
- Re: Will TCL release the variables automatically when the procedure is finished?
- From: Cameron Laird
- Re: Will TCL release the variables automatically when the procedure is finished?
- Prev by Date: Re: Will TCL release the variables automatically when the procedure is finished?
- Next by Date: Re: How to return a regexp search from a string
- Previous by thread: Re: Will TCL release the variables automatically when the procedure is finished?
- Next by thread: Re: Will TCL release the variables automatically when the procedure is finished?
- Index(es):