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

Home » Public Forums » archive » Re: Graphics memory Allocation
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
Re: Graphics memory Allocation [message #32098] Wed, 11 September 2002 06:35
David Fanning is currently offline  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 Go to previous message
R.Bauer is currently offline  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
============================================================ =======
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Graphics memory Allocation
Next Topic: Pointer Behavior Objects Vs Plain routines?

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

Current Time: Fri Oct 10 19:12:55 PDT 2025

Total time taken to generate the page: 1.56099 seconds