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

Home » Public Forums » archive » Re: Stop program in IDL 6.2
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: Stop program in IDL 6.2 [message #73546 is a reply to message #73544] Fri, 12 November 2010 08:54 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ammar Yusuf writes:

> No, it's just a simple program:
>
> for i = 0L, 10000 do begin
> index = total(findgen(1000000))
> endfor
>
> print, index
>
> end
>
> Of course it takes a few minutes to compute. It's just a test program
> and when I run it through IDL 6.2 I want to stop execution in the
> middle but that doesn't work by hitting pause/break on the computer or
> control c but that doesn't work. I have to wait for the program to
> stop executing or hit a stop statement to suspend. Thanks.

No, a FOR loop is a single command to the IDL interpreter.
It doesn't look for a CNTL-C until after it is out of the
loop and looking for the next command. If the interpreter
looked for control characters inside of FOR loops, they would
be slower than they already are. :-)

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: run .sav file with -args
Next Topic: Good-bye Plot, Surface, Contour, TV and all the rest!

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

Current Time: Thu Oct 09 13:13:44 PDT 2025

Total time taken to generate the page: 1.14030 seconds