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

Home » Public Forums » archive » How to kill a procedure?
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
How to kill a procedure? [message #13716] Thu, 03 December 1998 00:00 Go to next message
Med Bennett is currently offline  Med Bennett
Messages: 109
Registered: April 1997
Senior Member
I am wondering how to kill an errant IDL procedure in Windows 95 without
killing the whole application and starting over. I sometimes make a
programming error which causes a procedure to go into an infinite loop.
It seems like I used to be able to hit ctrl-C in older versions of IDL,
at least in procedures that had some sort of print statement in them, to
exit out of a procedure. But recently when this has happened, nothing
seems to work and I have to hit ctrl-alt-delete and kill IDL entirely,
which is very annoying, especially if I have unsaved variables. Any
suggestions would be greatly appreciated!

Thanks in advance,

Med Bennett
mbennett @ indra.com
IDL 5.0.2
Windows95
Pentium-133, 48 MB RAM
Re: How to kill a procedure? [message #13827 is a reply to message #13716] Mon, 07 December 1998 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Med Bennett wrote:

> I am wondering how to kill an errant IDL procedure in Windows 95 without
> killing the whole application and starting over. I sometimes make a
> programming error which causes a procedure to go into an infinite loop.
> It seems like I used to be able to hit ctrl-C in older versions of IDL,
> at least in procedures that had some sort of print statement in them, to
> exit out of a procedure. But recently when this has happened, nothing
> seems to work and I have to hit ctrl-alt-delete and kill IDL entirely,
> which is very annoying, especially if I have unsaved variables. Any
> suggestions would be greatly appreciated!

I think you are out of luck here. And I seriously doubt whether
you were ever able to interrupt a loop in IDL previously. Normally,
something like a FOR loop is considered a single command to the
IDL compiler. IDL will only look for interrupt characters at the
end of each command.

I've written my own share of infinte loops, especially before
I learned to *ALWAYS* cancel my CATCH error handler in my
error handling code. Nothing like having errors in the error
handling code to put IDL into a tight (and uninterruptable)
spin. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Progamming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: outputting formated text version of code
Next Topic: New dollar coin designed using IDL (please vote)

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

Current Time: Sat Oct 11 02:17:43 PDT 2025

Total time taken to generate the page: 0.24152 seconds