Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
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?
Hi Aaron, If you do: out.close after you do each plot, then it should free up the memory. Cheers, Chris ITTVIS
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
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!