freeing memory used by Import[]
- To: mathgroup at smc.vnet.net
- Subject: [mg102010] freeing memory used by Import[]
- From: divisor <congruentialuminaire at yahoo.com>
- 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}]) //
TableForm
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.
Regards..
Roger Williams
Franklin Laboratory