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

Home » Public Forums » archive » Re: Exiting widget application
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
Re: Exiting widget application [message #1539] Mon, 29 November 1993 08:06
offenbrg is currently offline  offenbrg
Messages: 31
Registered: August 1993
Member
plewe@dl.mpi-dortmund.mpg.de (J.Plewe) writes:


> How can I leave a widget application? I tried something like this:


> wdelete,0
> Widget_Control, event.top, /DESTROY
> exit
>

> After this, the system really leaves IDL but generates this message:


> % Callback routines must not STOP or EXIT
> % Execution halted at XMANAGER </mpisys/idld/r3.1/lib/widgets/xmanager.pro(
> 450)> .
> % Called from ROUT <rout.pro( 190)>.
> % Called from $MAIN$ .

"EXIT" means "Exit from IDL," not "Exit from this routine."

If you wish to quit from a procedure or function, use RETURN, or just END
the routine as you would normally.

You can not issue an EXIT (from IDL) command from within a Widget routine.
You can from other routines, but XMANAGER prevents you from aborting a
Widget-routine with a STOP or with an EXIT.

Hope this helps,
Joel
--
Joel D Offenberg | "Aren't you in the position of a life-long
Hughes STX/ UIT Science Team | vegetarian giving us your recipe for steak
offenbrg@fondue.gsfc.nasa.gov | and kidney pie?" - Rumpole of the Bailey
I get paid to stare into space. |
Re: Exiting widget application [message #1543 is a reply to message #1539] Mon, 29 November 1993 04:03 Go to previous message
utermann is currently offline  utermann
Messages: 1
Registered: November 1993
Junior Member
In article <ITIJBE9I@gwdu03.gwdg.de>, plewe@dl.mpi-dortmund.mpg.de (J.Plewe) writes:
|>
|> How can I leave a widget application? I tried something like this:
|>
|>
|> wdelete,0
|> Widget_Control, event.top, /DESTROY
|> exit
|>
|>
|> After this, the system really leaves IDL but generates this message:
|>
|>
|> % Callback routines must not STOP or EXIT
|> % Execution halted at XMANAGER </mpisys/idld/r3.1/lib/widgets/xmanager.pro(
|> 450)> .
|> % Called from ROUT <rout.pro( 190)>.
|> % Called from $MAIN$ .
|>
|>
|> How can I avoid this? What is wrong?
|>
|>
|> Thanks, Joerg Plewe, MPI-Dortmund, Germany
|>
|>

I do not know the reason for this, but I can tell you, it's not
the wdelete or widget_control command you used -- at least, only
in combination with some other command. I use exactly the same
widget_control command and I added the wdelete to my application,
but every thing is o.k. (I use IDL 3.1.0 on IBM RS6k)

Good luck, Ralf

--
Ralf Utermann
____________________________________________________________ _________
University of Augsburg (Germany)
Institute of Physics - Theoretical PhysicsI & Computer Center
Memmingerstr.6 "Speaking for me and nobody else"
D-86135 Augsburg Tel.: +49 +821/5977-235
SMTP: Utermann@Uni-Augsburg.DE Fax : 5977-225
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL (Interactive Data Language) FAQ
Next Topic: bidirectional pipes in SunOS

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

Current Time: Wed Oct 08 15:33:23 PDT 2025

Total time taken to generate the page: 0.00508 seconds