Re: undefined procedure problem [message #15905 is a reply to message #15904] |
Fri, 18 June 1999 00:00  |
Martin Schultz
Messages: 515 Registered: August 1997
|
Senior Member |
|
|
Kristine Hensel wrote:
>
> Hi,
>
> I'm having trouble with IDL compiling a procedure and then telling me
> that the procedure is undefined:
>
> % Compiled module: COMMENT_EV.
> % XMANAGER: Caught unexpected error from client application. Message
> follows...
> % Attempt to call undefined procedure/function: 'COMMENT_EV'.
> % Execution halted at: XMANAGER_EVLOOP_STANDARD 471
> /opt/share/idl/lib/xmanager.pro
> % XMANAGER 699
> /opt/share/idl/lib/xmanager.pro
> % MANAGE_DATA 241
> /home/hensel/idl/mylib/manage_data.pro
> % $MAIN$
> [...]
> Thanks,
> Kristine
>
maybe I am the wrong one to answer (because I am not that much into
widgets), but perhaps the following tips can help:
(1) try a call to resolve_routine,'comment_ev' before you call cw_form.
That should ensure it gets compiled before cw_form is registered with
xmanager.
(2) try to put comment_ev in a seperate file with that name and make
sure it is in the IDL !PATH.
(3) if (2) works, my suspicion would be that comment_ev is embedded in a
file after the routine that bears the name of the file. That's always
dangerous.
Good luck,
Martin.
--
|||||||||||||||\\\\\\\\\\\\\-------------------///////////// //|||||||||||||||
Martin Schultz, DEAS, Harvard University, 29 Oxford St., Pierce 109,
Cambridge, MA 02138 phone (617) 496 8318 fax (617) 495 4551
e-mail mgs@io.harvard.edu web http://www-as/people/staff/mgs/
|
|
|