Re: IDL 6.1 create_struct() peculiarity [message #44292 is a reply to message #44199] |
Wed, 01 June 2005 08:12  |
R.G. Stockwell
Messages: 363 Registered: July 1999
|
Senior Member |
|
|
"Justin Bronn" <jbronn@swri.edu> wrote in message
news:1117569650.819400.258050@g43g2000cwa.googlegroups.com.. .
...
> IDL> struct = create_struct(NAME=sname)
>
> Now while this seems to work great at the IDL command line, when I try
> to embed this method into a callable procedure, the create_struct()
> throws a strange warning message (but doesn't stop the execution of the
> code):
>
> % CREATE_STRUCT: Unexpected keyword cleanup stack found on return.
I have tried this, and I also get that warning message.
The very odd thing though, is that I do NOT get the warning if
I send in the string differently.
i.e., the following works just fine.
namein = 'xosimple'
struct = create_struct(NAME=namein)
Perhaps it is something strange with the string being created with
the stregex() function. Something internal to IDL, cause I cannot
see the difference. In fact,
print, namein eq struct_name
returns a 1, indicating that the strings are identical.
Very weird. I suggest sending in a bug report to RSI.
Cheers,
bob
PS
DL> help,!version,/st
** Structure !VERSION, 8 tags, length=76, data length=76:
ARCH STRING 'x86'
OS STRING 'Win32'
OS_FAMILY STRING 'Windows'
OS_NAME STRING 'Microsoft Windows'
RELEASE STRING '6.1.1'
BUILD_DATE STRING 'Oct 11 2004'
MEMORY_BITS INT 32
FILE_OFFSET_BITS
INT 64
|
|
|