MAKE_RT strange behaviour [message #83101] |
Thu, 07 February 2013 01:21 |
LNpellen
Messages: 37 Registered: November 2009
|
Member |
|
|
I have an application that works fine in "IDL project-mode". To distribute this application I use the MAKE_RT procedure to create an executable file.
After changing from IDL 7.1 to 8.1 I discovered that some functions did not work properly anymore in the "exe-mode", but they still worked fine in "IDL project-mode".
Specifically I have a dropdown list where another dropdown list is filled based on the selection in the first list. In the exe-version the second list were empty. Here is a bit of the code:
sel=WIDGET_INFO(linacList,/DROPLIST_SELECT)
linacNameTemp=list(sel)
names=TAG_NAMES(c.linacs)
linacRef=WHERE(names EQ linacNameTemp)
;fill energy list
xenergy=TAG_NAMES(c.linacs.(linacRef))
;res=dialog_message('Nxenergy ='+ STRING(N_ELEMENTS(xenergy),FORMAT='(i0)'))
IF N_ELEMENTS(xenergy) NE 1 THEN BEGIN
xenergy=xenergy[1:N_ELEMENTS(xenergy)-1]
WIDGET_CONTROL, eList, SET_VALUE=['',STRMID(xenergy,1)], SET_DROPLIST_SELECT=0
ENDIF ELSE WIDGET_CONTROL, eList, SET_VALUE='', SET_DROPLIST_SELECT=0
|
|
|