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

Home » Public Forums » archive » IDL 6.1 create_struct() peculiarity
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: IDL 6.1 create_struct() peculiarity [message #44292 is a reply to message #44199] Wed, 01 June 2005 08:12 Go to previous message
R.G. Stockwell is currently offline  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
[Message index]
 
Read Message
Read Message
Previous Topic: Re: IDL 6.1 pixel size in Iimage
Next Topic: Slider Bar UNIX qualities

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

Current Time: Fri Oct 10 05:52:31 PDT 2025

Total time taken to generate the page: 1.12176 seconds