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

Home » Public Forums » archive » Re: Array of associated variables?
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: Array of associated variables? [message #42269] Fri, 21 January 2005 06:29 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
sso@nilu.no writes:

> Thanks! This works, but my code still doesn't. The difference which
> makes my program crash is the definition of the a=assoc(...) which in
> my code is a structure. It's like this:
>
> openu, inun, filename, /swap_if_little_endian, /get_lun
> a = assoc(inun, strucval, headpos)
>
> where strucval is a structure (consisting of various types of
> float/long data) and headpos is the offset. There's another difference
> also, and that's the open statement above, but I guess that shouldnt
> cause the program to crash.

I would suspect the OPEN statement before I suspected the
structure in the ASSOC command. But you are right, it shouldn't
crash. Probably a bug somewhere. If you have a small reproducible
program, send it to RSI and find out.

> So it seems as the use of pointer arrays for associated variables
> doesnt work when the associated variable is a structure? Hmm. I must
> admit I get somewhat confused with this.

I don't think this is true. In any case, it is WAY to early
to jump to this conclusion. :-)

> Guess I will have to leave the array of associated vars. then and try
> to circumvent this in some way(?)

Store the filenames and just do the ASSOC whenever you need something
from the file.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: AVI, MPEG, QT reading, writing and preprocessing
Next Topic: Tracking Cursor in Object Graphics Draw Widgets

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

Current Time: Wed Oct 08 16:07:38 PDT 2025

Total time taken to generate the page: 0.00451 seconds