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

Home » Public Forums » archive » Re: _EXTRA inheritance crashing IDL
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: _EXTRA inheritance crashing IDL [message #30198 is a reply to message #30196] Wed, 10 April 2002 19:05 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Rob Preece (Rob.Preece@msfc.nasa.gov) writes:

> OK, Rob de-lurking here.

Oh, good. :-)

> Has anyone seen a behavior where IDL 5.5 crashes on a call to a subroutine
> with an added _EXTRA keyword? I have found the same behavior on several
> different machines, Linux and Mac, which does not exist under 5.4. Here
> goes a test case:
>
> PRO test1, _REF_EXTRA = extra
>
> testStuff = ['TITLE','XTITLE','YTITLE']
>
> test2, INDGEN (10), _EXTRA = [testStuff, 'XRANGE']
>
> END
>
> PRO test2, plotStuff, _EXTRA = extra
>
> PLOT, plotStuff, plotStuff, _EXTRA = extra
>
> END
>
>
> Compile and execute :
>
> IDL> test1, XRANGE = [-1, 10]
>
> On 5.4, I get a nice plot, with my new XRANGE. On 5.5, I get a *totally
> irrelevant* error message:

Well, yes, it crashes IDL 5.5, but not IDL 5.4. But I
don't think you can hold RSI responsible for using their
keyword inheritance mechanism in such a bogus way.
Formatting the keywords you want to pass as a structure
(the way this was meant to work) is error free:

PRO test1, _REF_EXTRA = extra
testStuff = {TITLE:'bob',XTITLE:'jim',YTITLE:'mary'}
test2, INDGEN (10), _Extra=Create_Struct(testStuff, 'XRange',[0,5])
END

PRO test2, plotStuff, _EXTRA = extra
PLOT, plotStuff, plotStuff, _EXTRA = extra
END

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Finding the Non-Matching elements in two vectors
Next Topic: Examine "Saved" IDL procedures now too!

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

Current Time: Sun Oct 12 14:19:20 PDT 2025

Total time taken to generate the page: 0.40087 seconds