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

Home » Public Forums » archive » Erasing common block variables
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
Erasing common block variables [message #7062] Tue, 24 September 1996 00:00 Go to next message
Runar Joergensen is currently offline  Runar Joergensen
Messages: 3
Registered: September 1996
Junior Member
Neither the command .run nor .rnew erases=20
the common block variables (2-11U). So whenever I need to=20
change my common blocks I need to terminate IDL and=20
restart IDL again. Very unpractical.

The same problem arises when dealing with structures.
Is there a way around this?

Thanks in advance.
Runar J=F8rgensen

-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D -=3D-=3D-=3D-=
=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- =3D-=3D-=3D-=3D=
-
Runar Jorgensen ||=20
University of Oslo || Phone: +47 2285 5664 =20
Department of Physics || Telefax: +47 2285 5671 =20
P.O.Box 1048 Blindern || email: runar.jorgensen@fys.uio.no
0313 Oslo; Norway ||
-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D -=3D-=3D-=3D-=
=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- =3D-=3D-=3D-=3D=
-
Re: Erasing common block variables [message #7145 is a reply to message #7062] Wed, 25 September 1996 00:00 Go to previous message
chase is currently offline  chase
Messages: 62
Registered: May 1993
Member
>>>> > "Liam" == Liam Gumley <liam.gumley@ssec.wisc.edu> writes:
In article <3247E4DA.C23@ssec.wisc.edu> Liam Gumley <liam.gumley@ssec.wisc.edu> writes:


Liam> Runar Joergensen wrote:
>> Neither the command .run nor .rnew erases
>> the common block variables (2-11U). So whenever I need to
>> change my common blocks I need to terminate IDL and
>> restart IDL again. Very unpractical.
>> The same problem arises when dealing with structures.
>> Is there a way around this?

Liam> Try using handles. See Section 11-16 of the IDL 4.01 User's Guide.

Indeed, handles and anonymous structures are the best solution for
this. If you must have a common block for global access then put
either a single anonymous structure or a handle ID into the common
block. Then you "change" your common block by changing the anonymous
structure or the values in the tree reference by the handle. A long
time ago I switched to using an anonymous structure in common blocks
to avoid the problem Runar describes.

Chris


--
===============================
Bldg 24-E188
The Applied Physics Laboratory
The Johns Hopkins University
Laurel, MD 20723-6099
(301)953-6000 x8529
chris.chase@jhuapl.edu
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: warping lots of images
Next Topic: IDL and the SGI window manager

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

Current Time: Thu Oct 09 18:22:29 PDT 2025

Total time taken to generate the page: 0.48108 seconds