Re: freeing memory used by Import[]
- To: mathgroup at smc.vnet.net
- Subject: [mg102064] Re: freeing memory used by Import[]
- From: relishguy <rogerw at searchrdbms.com>
- Date: Tue, 28 Jul 2009 02:05:25 -0400 (EDT)
- References: <h4h21g$id4$1@smc.vnet.net>
Well, the news from WRI says that the kernel just leaks! :-( The only suggestion was Quit[]. I sure hope they are working to fix this at some point early in the V7 cycle. Normally in a shipping product you charge for, if it does not work, then disable it! At least this appear to be mainly for DEM support! Regards.. Roger Williams Franklin Laboratory On Jul 26, 12:53 am, divisor <congruentialumina... at yahoo.com> wrote: > 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