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

Home » Public Forums » archive » Re: IDL & ENVI error: WIDGET_CONTROL: Invalid widget identifier: 17
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 & ENVI error: WIDGET_CONTROL: Invalid widget identifier: 17 [message #65882 is a reply to message #65881] Fri, 27 March 2009 10:30 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
robintw writes:

> I've tried changing the envi command to that, and it still doesn't
> seeem to work. I've altered parts of the program now in a way which
> means it takes quite a while to run. Therefore, I frequently have to
> exit it using the Terminate command within the IDL Workbench. After
> I've used that command it always gives the error I mentioned in the
> previous post. Presumably this isn't expected behaviour when using the
> Terminate command? Any other ideas?

OK, then I think the problem is the Terminate command (which
I didn't even know existed!). I think what happens is that
things immediately get "terminated" in a way that is not
foreseen by the software. So when the software goes to
do something as innocuous as destroy its own top-level
base, for example, with a command like this:

Widget_Control, state.tlb, /Destroy

That widget is already destroyed, so it throws the
"invalid widget identifier" error you are experiencing.
I think you can probably expect this if you "terminate"
a program in an unexpected way, since programming for
the possibility of this kind of error is really WAY
out of the question. :-)

I think I might try a Cntl-C and see if you can stop
the program that way, followed by a .Reset maybe. I
can't even imagine all the havoc that could ensue with
a "Terminate" command. How come this button doesn't have
a mushroom cloud icon on it?

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL - EXP fitting function
Next Topic: reading large files

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

Current Time: Sat Oct 11 00:54:20 PDT 2025

Total time taken to generate the page: 0.64503 seconds