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

Home » Public Forums » archive » Re: How do I force standard output?
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 do I force standard output? [message #42307 is a reply to message #42306] Thu, 03 February 2005 06:39 Go to previous message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
Matt Feinstein wrote:
> Hi all--
>
> Normally, IDL (on Win32) will print to standard output while a
> computation is in progress, but I've found that if I'm doing a large
> enough computation, it appears to cache output data and only send to
> standard output when the computation is over. This isn't necessarily a
> bad thing-- my problem is that I can't overcome this behavior when I
> really -do- want output during the computation, i.e., the command
> 'flush, -1' doesn't do anything. The UNIX guy in the next office
> suggested a 'non-blocking interrupt for keyboard input' but I'd rather
> not delve into the Win32 API if I don't have to. Any suggestions?
> Matt Feinstein
>
> --
> There is no virtue in believing something that can be proved to be true.

I asked the same question a few days ago (see my posting "flushing
stdout"). I got two replies by email (not on the newsgroup) which told
me to put a tiny WAIT before or after the print statement (wait, .01) as
a workaround.

Benjamin
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: How do I force standard output?
Next Topic: splitting strings

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

Current Time: Sun Nov 30 14:20:35 PST 2025

Total time taken to generate the page: 0.80251 seconds