Problem with create_struct under OpenVMS [message #6703] |
Thu, 08 August 1996 00:00 |
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
============================================================ ======
|
|
|