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

Home » Public Forums » archive » Re: Re. MEMORY MANAGEMENT
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Re. MEMORY MANAGEMENT [message #8755] Wed, 23 April 1997 00:00
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
John Slavich wrote:
>
> Hello newsgroup,
>
<snip>
> Does anyone have a good idea of how I can clean the heap memory within
> the widget without having to restart IDL?
>

Check out the new procedure HEAP_GC to do garbage collection on
heap variables. First, though, make sure you're freeing your
pointers!

> Since I'm writing this, I have another "simple" question. Is there any
> way to change the black background of a plot window?

If you want to use a different drawing color for the background of the
plot (useful if you have a predefined color table that you don't want
to mess with), you can use

plot, x, y, background=255, color=some_color

You probably want to set the foreground color also, in
case !p.color is 255!

Dave
--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2200
La Jolla, CA 92037
[ UCSD Mail Code 0949 ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
[Message index]
 
Read Message
Previous Topic: ADVERTISE TO OVER 100 MILLION PEOPLE FOR FREE!!!
Next Topic: map un-projection

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

Current Time: Fri Oct 10 07:22:57 PDT 2025

Total time taken to generate the page: 1.03970 seconds