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

Home » Public Forums » archive » common blocks
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Common blocks [message #4244 is a reply to message #3202] Thu, 11 May 1995 00:00 Go to previous messageGo to previous message
Fergus Gallagher is currently offline  Fergus Gallagher
Messages: 41
Registered: January 1995
Member
phil@peace.med.ohio-state.edu (Phil) wrote:
> I got a ? for y'all. I know how to use common blocks in procedures
> and functions but don't know hoe to do the following. Here's the
> scenario:
>
> 1) run program w/ a common block (it's a widget)
> 2) exit the widget
> 3) access the common block from the command line via
> IDL> common blockname
>
> Here's my ?. How do I get out of the common block and back to the
> 'main' variable space? I have tried retall, but that does not work.
> Any help would be appreciated.
>

the command line above IS in the 'main' variable space - typing 'common
..' puts those variables in 'main'. You haven't lost any memory, since
those variables are there anyway, albeit invisible.

If you do need to get memory back, just set any (large) arrays in the
common block to be smaller. This doesn't always work, but that's another
story.....

Fergus

=================================================
| Fergus Gallagher |
| Remote Sensing Applications Development Unit |
| British National Space Centre |
| Monks Wood |
| Huntingdon PE17 2LS / UK |
| |
| F.Gallagher@nerc.ac.uk |
| http://uh.nmt.ac.uk/bnsc/fgg.html |
=================================================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: .dat file size
Next Topic: Re: do dlms work in vm? (prob)

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

Current Time: Sun Oct 12 06:44:12 PDT 2025

Total time taken to generate the page: 1.20133 seconds