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

Home » Public Forums » archive » freeing memory in programs
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
freeing memory in programs [message #3933] Thu, 23 March 1995 07:03 Go to previous message
pjclinch is currently offline  pjclinch
Messages: 27
Registered: May 1993
Junior Member
I'm writing a Wave Widgets program that uses some big arrays (256 * 256 *
128 MRI image stacks). Some operations require temporary arrays to hold
significant chunks of this, but I don't want these arrays around full
time to choke the memory. I can't use DLEVAR as I'm not at the main
program level, so how do I free up memory? If I had assigned an array
by, say

TmpArr = MAKE_ARRAY(256,256,128, /INT)

would a subsequent use of something like TmpArr = BYTE(0) or
TmpArr = MAKE_ARRAY(1) free up the memory, or would it still be taken up
but no longer accessible?

Curiously, Pete.
--
Peter Clinch Dundee Teaching Hospitals NHS Trust
voice: 44 1382 660111 x 3637 snail: Directorate of Medical Physics
fax: 44 1382 640177 Ninewells Hospital
email: p.j.clinch@dundee.ac.uk Dundee DD1 9SY Scotland UK
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Slide_Image (widget_draw) Scollbar-Position ?
Next Topic: labview news group

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

Current Time: Sat Oct 11 10:31:34 PDT 2025

Total time taken to generate the page: 0.72009 seconds