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

Home » Public Forums » archive » Re: IDL on Windows vs. Unix, debugging consideration
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: IDL on Windows vs. Unix, debugging consideration [message #40372] Sun, 08 August 2004 15:26 Go to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
Ben Panter wrote:
> R.G. Stockwell wrote:
>
>> You do know that in windows it is Control-Break, not control-C right?
>> I assume you meant that. I find that it often stops when you ask it to,
>> under windows. However a tight loop will ignore you. Perhaps a
>> wait command deep in the loop, with the smalles wait possible would help
>> [in a debuggin situation].
>
>
> I've used the following to stop runaway code in the IDLDE...
>
> # press the "break" button (which gets ignored)
> # attempt to close the IDLDE environment
> # reply "no"
>
> It then appears to process the break command *before* it restarts the
> program. This method has worked for me a number of times, although no
> guarantee is offered!

Clever!

If you know beforehand that your code might run away and you want to put
in an interruptible point (as distinct from a break point) the following
will do nicely:

void = widget_event(/NOWAIT)


--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)


# More included text than new text. Blah blah. #
# More included text than new text. Blah blah. #
# More included text than new text. Blah blah. #
# More included text than new text. Blah blah. #
# More included text than new text. Blah blah. #
# More included text than new text. Blah blah. #
# More included text than new text. Blah blah. #
# More included text than new text. Blah blah. #
# More included text than new text. Blah blah. #
# More included text than new text. Blah blah. #
# More included text than new text. Blah blah. #
# More included text than new text. Blah blah. #
# More included text than new text. Blah blah. #
# More included text than new text. Blah blah. #
# More included text than new text. Blah blah. #
# More included text than new text. Blah blah. #
# More included text than new text. Blah blah. #
# More included text than new text. Blah blah. #
# More included text than new text. Blah blah. #
# More included text than new text. Blah blah. #
# More included text than new text. Blah blah. #
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Histogram question
Next Topic: Saddam Hussein Found hanging in Jail Cell

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

Current Time: Fri Oct 10 10:16:39 PDT 2025

Total time taken to generate the page: 0.88012 seconds