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 #73547 is a reply to message #73546] Fri, 12 November 2010 08:47 Go to previous messageGo to previous message
Ammar Yusuf is currently offline  Ammar Yusuf
Messages: 36
Registered: October 2010
Member
On Nov 12, 11:29 am, David Fanning <n...@dfanning.com> wrote:
> Ammar Yusuf writes:
>> Hi, in IDL 6.2 when a program is running how do you stop execution of
>> the program in the middle because every time I click on it IDL just
>> freezes and I have to use the Task Manager to end the program. I tried
>> using control - c to stop execution but that didn't work.
>
> This sounds more like a run-away CATCH error handler
> to me. Are you canceling the CATCH as the first line
> in your error handler?
>
> Once you get into these infinite loops, they are VERY
> difficult to get out of. CNTL-C doesn't help at all,
> as you realize.
>
> 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.")

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.
[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 11:45:08 PDT 2025

Total time taken to generate the page: 2.55678 seconds