Non Nom on the Memory [message #77812] |
Sat, 08 October 2011 01:02  |
Aaron Kennedy
Messages: 4 Registered: October 2011
|
Junior Member |
|
|
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?
|
|
|
Re: Non Nom on the Memory [message #77992 is a reply to message #77812] |
Tue, 11 October 2011 12:28  |
Aaron Kennedy
Messages: 4 Registered: October 2011
|
Junior Member |
|
|
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!
|
|
|
Re: Non Nom on the Memory [message #77998 is a reply to message #77812] |
Mon, 10 October 2011 16:23  |
chris_torrence@NOSPAM
Messages: 528 Registered: March 2007
|
Senior Member |
|
|
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
|
|
|
|