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 
Return to the default flat view Create a new topic Submit Reply
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
[Message index]
 
Read Message
Read Message
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: Fri Oct 10 11:00:00 PDT 2025

Total time taken to generate the page: 0.00660 seconds