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

Home » Public Forums » archive » endless loops suck
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: endless loops suck [message #33909 is a reply to message #33853] Tue, 04 February 2003 06:25 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Altyntsev Dmitriy (alt@iszf.irk.ru) writes:

> Print is very time consuming operation, so I usually use something
> like this:
> if i mod 1000 EQ 0 then print, i, N
>
> Instead of "print" TMP = WIDGET_EVENT(/NOWAIT) can be used. It forces
> IDL to
> process Windows events including break events and events that were
> sent to IDL by other applications. It allowes other applications
> continue to work and makes the work on Windows "smoother" while IDL is
> running.

This is interesting, and suggestive, too. I wonder
if the ability to break into WHILE loops was added
when management of widget programs was taken out of
XManager. Makes sense that you would have to check
back to the command line periodically to see if a
widget event was waiting to be processed. If so, this
would be the first ever evidence of a positive benefit
from allowing users access to the IDL command line
when widget programs were running. :-)

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: OPENW and environment variables in IDL 5.5
Next Topic: Re: Test if variable is a string

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

Current Time: Fri Oct 10 01:29:28 PDT 2025

Total time taken to generate the page: 1.20083 seconds