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

Home » Public Forums » archive » WIDGET_CONTROL: Invalid widget identifier: 2
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: WIDGET_CONTROL: Invalid widget identifier: [message #78618 is a reply to message #57617] Mon, 05 December 2011 16:31 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
DB writes:

> I am pretty new to idl but have experience in other languages. I am
> working on a very large program originally created in idl 7, but I am
> working in idl 8.0.1. The following has been simplified from the
> program and produces an unusual error
>
> % Stepped to: ENVI_REAL_MAIN_BASE % WIDGET_CONTROL: Invalid widget
> identifier: 17.
>
> This error persists when the problematic portion of code is isolated
> as below. I have included the entire error message. Any suggestions to
> my ignorance or ways to overcome/fix this problem.
>
> pro testt
> compile_opt idl2
> envi, /restore_base_save_files
> envi_batch_init
>
> End

I'm not much of an ENVI person, but I *think* you have
execute those two ENVI commands from the IDL main-level.
That is, not from inside a program module. (I seem to recall
having the same problem once.)

The invalid widget identifier comes about when you try
to use a widget identifier in a command and that widget
no longer exists. This could happen, for example, if you
saved a program that used widgets, then killed all the widgets.
When you restore the program, you will have to re-create all
the widgets and update the widget identifiers. Otherwise, this
is exactly what can happen.

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: faster convol on local subsets?
Next Topic: Coyote Graphics PDF Files

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

Current Time: Sat Oct 11 04:26:16 PDT 2025

Total time taken to generate the page: 1.51886 seconds