Re: Graphics memory Allocation [message #32098] |
Wed, 11 September 2002 06:35 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Andrew Fielding (a.fielding@icr.ac.uk) writes:
> After multiple runs of even very simple idl procedures that involve
> displaying images I eventually (usually around 10 runs) have to exit
> and restart IDL as the system is 'Unable to allocate memory'. I am
> running IDL 5.5 under win 95, which I know is not supported. Why does
> the memory not get 'flushed' at the end statement of a procedure? Any
> solutions would be gratefully received!
I'm not sure what "flushed" means in this context.
(I *have* heard the word "flushed" used in the Windows 95
context, but I don't think that is what you mean here.)
IDL does clean up memory at the end of each procedure.
Memory doesn't get returned to the operating system,
typically, but it does get reused internally. But, as
you well know, with an unsupported operating system,
all bets are off. :-)
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
Re: Graphics memory Allocation [message #32099 is a reply to message #32098] |
Wed, 11 September 2002 06:23  |
R.Bauer
Messages: 1424 Registered: November 1998
|
Senior Member |
|
|
Andrew Fielding wrote:
> After multiple runs of even very simple idl procedures that involve
> displaying images I eventually (usually around 10 runs) have to exit
> and restart IDL as the system is 'Unable to allocate memory'. I am
> running IDL 5.5 under win 95, which I know is not supported. Why does
> the memory not get 'flushed' at the end statement of a procedure? Any
> solutions would be gratefully received!
>
> cheers,
>
> Andrew
Dear Andrew,
are you using pointers. If so do a ptr_free.
regards
Reimar
--
Reimar Bauer
Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
============================================================ =======
|
|
|