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

Home » Public Forums » archive » dereferencing pointer arrays.
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
dereferencing pointer arrays. [message #33964] Wed, 05 February 2003 19:01
Rochelle Hatton is currently offline  Rochelle Hatton
Messages: 2
Registered: February 2003
Junior Member
On following some useful tips from the newsgroup, I have
referenced my assoc variables (multiple files) with pointers. I have then
placed these pointers into an array. Not being used to using pointers,
I checked the help on dereferencing my array (BTW I really dislike the pdf
online help in 5.6!).
So the help says, if you have a pointer array mm, you can dereference it using
the index e.g. if I want the first pointer, I can type
IDL> print, *mm[0]
however I get this error-
% PRINT: File expression not allowed in this context: <PtrHeapVar9>.

Also, if I assign the index to a variable, it works e.g. xx=*mm[0]
I guess this is a problem because of what I am storing in the pointer,
namely a non-variable reference thingy which is
like a pointer (the assoc variable).
Is there any way I can dereference the assoc
variable without having to assign it-the whole point of using the pointer??
--
Rochelle Hatton
Medical Physicist
Department of Nuclear Medicine and Ultrasound
Westmead Hospital
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: how can i call a compiled fortran code from IDL?
Next Topic: Re: dereferencing pointer arrays.

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

Current Time: Fri Oct 10 19:24:20 PDT 2025

Total time taken to generate the page: 1.12257 seconds