comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Non Nom on the Memory
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Non Nom on the Memory [message #77812] Sat, 08 October 2011 01:02 Go to next message
Aaron Kennedy is currently offline  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 Go to previous message
Aaron Kennedy is currently offline  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 Go to previous message
chris_torrence@NOSPAM is currently offline  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
Re: Non Nom on the Memory [message #77999 is a reply to message #77812] Mon, 10 October 2011 16:14 Go to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
Hi Aaron,

If you do:
out.close
after you do each plot, then it should free up the memory.

Cheers,
Chris
ITTVIS
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Writ 2 KML
Next Topic: Coyote Programs Screw-Up

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:14:30 PDT 2025

Total time taken to generate the page: 0.00589 seconds