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

Home » Public Forums » archive » Problem with create_struct under OpenVMS
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Problem with create_struct under OpenVMS [message #6703] Thu, 08 August 1996 00:00
Liyun Wang is currently offline  Liyun Wang
Messages: 4
Registered: October 1995
Junior Member
Hi,

I have an IDL function routine (let's call it MK_STC for the sake of
argument) that uses CREATE_STRUCT to create an anonymous structure in
following way:

stc = create_struct('tag_1', strarr_1)

then in a loop I do

stc = create_struct(stc, 'tag_i', strarr_i)

where strarr_i is the ith string array.

MK_STC works well in most cases (including typing a=mk_stc() at IDL
prompt) except when it is called from a not-so-small application; in
this case, I get an error message from IDL saying "Invalid tag number,
CREATE_STRUCT, structure anonymous". After this happens, MK_STC stops
working even with a=mk_stc() at IDL prompt. I have to point out that the
error only occurs on my DEC alpha machine running OpenVMS. Here is the
!version info of my machine:

IDL> help, /str, !version
** Structure !VERSION, 4 tags, length=32:
ARCH STRING 'alpha'
OS STRING 'vms'
OS_FAMILY STRING 'vms'
RELEASE STRING '4.0'

I tried my same application that calls MK_STC on other DEC alpha
machines running OSF/1 V3.2 for IDL versions 3.6.1c and 4.0.1 without
any problem. In all cases, I set the code and data sizes to 64000 bytes
in my IDL session.

Do you experience a similar problem? Can any of you give me a clue on
why CREATE_STRUCT behaves differently under OpenVMS and OSF/1?

Thanks a lot.

Liyun

--
============================================================ ======
Liyun Wang | FAX: 301-286-0264
G1 Building 26, SOHO EAF | Voice: 301-286-3126
NASA, GSFC, Code 682.3 | Liyun.Wang.1@gsfc.nasa.gov
Greenbelt, MD 20771 | http://orpheus.nascom.nasa.gov/~lwang
============================================================ ======
[Message index]
 
Read Message
Previous Topic: real FFT
Next Topic: Re: Changing maximum of slider

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

Current Time: Fri Oct 10 00:00:35 PDT 2025

Total time taken to generate the page: 0.63655 seconds