Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #4059

Re: Memory leak or flawed garbage collector

From "Fabrice P. Laussy" <fabrice.laussy@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Memory leak or flawed garbage collector
Date 2011-07-30 10:03 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j10kt4$or9$1@smc.vnet.net> (permalink)
References <201107291203.IAA15705@smc.vnet.net> <4E32E0B4.7060306@wolfram.com>

Show all headers | View raw


On Friday, July 29, 2011 06:32:52 pm you wrote:
> Essentially impossible to diagnose conclusively without actual code. But 
> from the ?RegMatrix$632 result above, it appears you use some Module 
> local symbols to create DownValues. I believe that creates references so 
> that the ref counting mechanism will not allow freeing them, What I 
> typically do is explicitly Clear such variables before exiting Module.

Dear Daniel,

I thought the description would be enough for a guru to identify if this was a bug or some problem from my side. As I said I couldn't reproduce the problem in simplified versions. If you want an instance of the code I can provide it.
 
> There is an example of this at
> http://forums.wolfram.com/mathgroup/archive/2010/Jan/msg00155.html

however I think for a while you provided enough information hinting that the 
problem lies on my side. I am calling external modules and this might result 
in locking variables. I'll study your link & come back here if I can't make 
sense of it.

Thanks for your tips.

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Memory leak or flawed garbage collector "Fabrice P. Laussy" <fabrice.laussy@gmail.com> - 2011-07-30 10:03 +0000

csiph-web