sec : U Re: memory problems on Win2000 or how to delete a variable [message #30285] |
Wed, 17 April 2002 17:11 |
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
------------------------------------------------------------ ---------
|
|
|