MathGroup Archive 2009

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

Search the Archive

freeing memory used by Import[]

  • To: mathgroup at
  • Subject: [mg102010] freeing memory used by Import[]
  • From: divisor <congruentialuminaire at>
  • Date: Sun, 26 Jul 2009 03:56:19 -0400 (EDT)

Hello MathGroup:

Somehow running the following command a few times depletes all of the
free memory of this machine (as reported by Task Manager). The command
draws 3 graphics of Chicago in random color schemes:

q = {#, Import["e:\\chicago-e.gz"
      , ColorFunction -> #
      ]} & /@ (ColorData["Gradients"][[#]] & /@
     Table[RandomInteger@Length@ColorData["Gradients"], {3}]) //

Even Clear@q and Remove@q do not reduce the memory usage.

After about 3 iterations I must restart Mathematica V7.0.1 or the 1GB XP
becomes unusable (even for browsing).

Is there a way to release the memory used by Import[] after the
graphic is generated?

Any help is greatly appreciated.


Roger Williams
Franklin Laboratory

  • Prev by Date: Re: space for NonCommutativeMultiply
  • Next by Date: Re: Optimize evaluation of symbolic expressions
  • Previous by thread: Re: How can I "perturbate" a NDSolve expresion?
  • Next by thread: Re: freeing memory used by Import[]