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 #65885 is a reply to message #65883] Fri, 27 March 2009 09:32 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
robintw writes:

> I'm very much an IDL newbie, but I have experience in other
> programming languages. I'm trying to use IDL with ENVI to do some
> image processing.
>
> My code is below, and is relatively simple - just calculating some
> statistics for the image. However, every so often when I run it I get
> the error "WIDGET_CONTROL: Invalid widget identifier: 17.". If I close
> the IDL/ENVI Workbench and reload it then the error goes away and I
> can run it fine again a few times, until the error starts coming up
> again.
>
> I'm not doing anything with widgets explicitly (although I think the
> ENVI_SELECT_FILE function uses widgets) so I can't think what I'm
> doing. I use the "envi" command at the beginning to load the envi
> environment, is there a command I need to run at the end to close the
> envi environment and release all the files and widgets etc. If so,
> what is this command - I can't seem to find it anywhere!

I think the problem you are having is that you are not
invoking ENVI in such a way as to get everything initiated
properly. I would change your "envi" command to this:

envi, /restore_base_save_files

Let us know if that works.

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: Wed Oct 08 19:35:03 PDT 2025

Total time taken to generate the page: 0.00546 seconds