Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Memory leak or flawed garbage collector

  • To: mathgroup at smc.vnet.net
  • Subject: [mg120585] Re: Memory leak or flawed garbage collector
  • From: "Fabrice P. Laussy" <fabrice.laussy at gmail.com>
  • Date: Sat, 30 Jul 2011 06:00:03 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <201107291203.IAA15705@smc.vnet.net> <4E32E0B4.7060306@wolfram.com>

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.




  • Prev by Date: Re: FinancialData still broken
  • Next by Date: Re: NIntegrate issue with symbolic parameters
  • Previous by thread: Memory leak or flawed garbage collector
  • Next by thread: Re: Memory leak or flawed garbage collector