Lost my 'info' structure [message #31201] |
Wed, 19 June 2002 10:23 |
K.Y.Choi
Messages: 4 Registered: April 2002
|
Junior Member |
|
|
I have a widget program that contains child widget function, i.e. as a
button pressed, new widget pops up for changing properties of a plot
in parent widget, for instance. Part of the code in event handler is
as follows,
...
414 WIDGET_CONTROL, event.top, GET_UVALUE=info, /NO_COPY
415 get = child(cancel=Canceled, GROUP_LEADER=event.top)
416 WIDGET_CONTROL, event.top, SET_UVALUE=info, /NO_COPY
...
The XMANAGER error occurs.
% XMANAGER: Caught unexpected error from client application. Message
follows...
% Expression must be a structure in this context: INFO.
% Execution halted at: CHILD 167 A:\child.pro
% XMANAGER_EVLOOP_STANDARD 478
C:\_Work\ENVI35\IDL55\lib\xmanager.pro
% XMANAGER 708
C:\_Work\ENVI35\IDL55\lib\xmanager.pro
% PARENT_EVENT 197 D:\parent.pro
% PARENT 415 A:\parent.pro
% $MAIN$
INFO UNDEFINED = <Undefined>
% Expression must be a structure in this context: INFO.
% Execution halted at: PARENT 418 A:\parent.pro
% WIDGET_PROCESS_EVENTS
% $MAIN$
The error massage obviously indicate that it stops at XMANAGER in
child program, and lost INFO structure from parent program. I couldn't
find how to keep my INFO structure. The conflict of XMANAGER between
parent and child may seem to cause the problem.
Since I am not quite familiar to use XMANAGER, is there a special
keyword for solve the problem?
More strange thing is that the same code works in my home PC, whereas
it doen't in my office PC (Same version of IDL). Could such problem be
affected by hardware?
Please help.
|
|
|