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

Home » Public Forums » archive » sec : U Re: memory problems on Win2000 or how to delete a variable
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
sec : U Re: memory problems on Win2000 or how to delete a variable [message #30285] Wed, 17 April 2002 17:11
Andrew Cool is currently offline  Andrew Cool
Messages: 219
Registered: January 1996
Senior Member
Dominik Paul wrote:
>
> Hi NG
>
> for performance tests, we want to run a programm, which is creating a lot of
> big arrays. But after some runs, IDL cant allocate any memory any more.
> Can somebody give me a hint, how to delete a variable?
>
> Thanks
> Dom

Hi Dom,

From David Fanning's site, try this UNDEFINE routine.

Andrew Cool


PRO UNDEFINE, varname
tempvar = SIZE(TEMPORARY(varname))
END


You use it like this:

IDL> a = BYTARR(200,200)
IDL> HELP, a

A BYTE = Array(200, 200)

IDL> UNDEFINE, a
IDL> HELP, a

A UNDEFINED = *Undefined*

------------------------------------------------------------ ---------
Andrew D. Cool .->-.
Electromagnetics & Propagation Group `-<-'
Surveillance Systems Division Transmitted on
Defence Science & Technology Organisation 100% recycled
PO Box 1500, Salisbury electrons
South Australia 5108

Phone : 061 8 8259 5740 Fax : 061 8 8259 6673
Email : andrew.cool@dsto.defence.gov.au
------------------------------------------------------------ ---------
[Message index]
 
Read Message
Previous Topic: Re: generalized eigenvectors
Next Topic: tall SURFACE plots don't work?

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

Current Time: Wed Oct 08 20:03:45 PDT 2025

Total time taken to generate the page: 0.00407 seconds