comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: Non Nom on the Memory
items: Re: Non Nom on the Memory

Non Nom on the Memory
type: item
description: Greetings, I have a relatively simple program that creates a plot of some data for each day over many years. I'm using IDL 8.1, and thus the new graphics system. I have some object out=plot(balbalba) with the graphics going to a buffer. The problem I have is after looping over many days, IDL eats up the 8gb of ram on my system quite quickly at which point things go south. What is the proper way to clean up the graphics objects after each day such that I avoid the memory issues? I've tried a few different techniques such as setting the variables to 0 (no help) and delvar. My preliminary google sleuthing yielded David's undefine.pro and when I try to run this, I get a: SAVE: Target not found: /TOOLS/GRAPHIC_2/WINDOW error after the first day completes. Any suggestions?
creator: Aaron Kennedy
date: 2011-10-08T08:02:31-00:00

Re: Non Nom on the Memory
type: item
description: Hi Aaron, If you do: out.close after you do each plot, then it should free up the memory. Cheers, Chris ITTVIS
creator: chris_torrence@NOSPAM
date: 2011-10-10T23:14:33-00:00

Re: Non Nom on the Memory
type: item
description: I just thought of a different option. Rather than regenerating the plot each time, you might try using the "SetData" method to just replace the plot data. This may not work depending upon whether you have set your axis ranges or not. If it does work, then that would require the least amount of memory. If it doesn't work, then you can use the "close" method. -Chris
creator: chris_torrence@NOSPAM
date: 2011-10-10T23:23:35-00:00

Re: Non Nom on the Memory
type: item
description: On Oct 10, 6:23 pm, Chris Torrence <gorth...@gmail.com> wrote: > I just thought of a different option. > > Rather than regenerating the plot each time, you might try using the "SetData" method to just replace the plot data. This may not work depending upon whether you have set your axis ranges or not. If it does work, then that would require the least amount of memory. > > If it doesn't work, then you can use the "close" method. > > -Chris Thanks for the suggestions!
creator: Aaron Kennedy
date: 2011-10-11T19:28:21-00:00