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

Home » Public Forums » archive » widget destruction
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
widget destruction [message #18959] Tue, 15 February 2000 00:00
Steven Chetelat (CS) is currently offline  Steven Chetelat (CS)
Messages: 11
Registered: February 2000
Junior Member
I just spent a while tracing down a rotten little bug in my program,
because I had no idea that IDL would behave as it did. The code segment
was:
widget_control,ev.handler,get_uvalue=dataim,/NO_COPY
str=dataim.imname
imint=fix(strmid(str,2,strlen(str)-2))-1
imarr(imint).in_use=0 ; free the image for manipulation
widget_control, ev.handler, /DESTROY

which generated :
% XMANAGER: Caught unexpected error from client application. Message
follows... % Expression must be a structure in this context: DATAIM.

As a fix, I've added the following line immediately before the destroy
command:
widget_control,ev.handler,set_uvalue=dataim,/NO_COPY

My question is *why* does the uvalue need to be defined in order to
destroy the widget? I checked every line of code leading up to that one
(through a couple of programs) because I just didn't consider it...


K-Bye,
STEVE! (chetelat@csee.usf.edu)(steve@moffitt.usf.edu)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: REQ: alternative plot procedure?
Next Topic: Opening a .bil image file

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

Current Time: Wed Oct 08 15:54:13 PDT 2025

Total time taken to generate the page: 0.00428 seconds