freeprocess lag

BlitzMax Forums/BlitzMax Programming/freeprocess lag

you should flush your writes at the end of every packet similar to the print function declared in brl.standardio.standardio.bmx.

in windows you can hook up stdio with freeprocess like so
Strict

Local io:TPipeStream

Local stdin=GetStdHandle(-10)
Local stdout=GetStdHandle(-11)


io=TPipeStream.Create( stdin,stdout )

io.Write("hello".toCString(),5)
io.Flush

io.Close

End


just crashed maxide monitoring stdin so possibly kind of dangerous way of operating.

under osx/linux i think you can use stdin_ stdout_ global handles instead