freeprocess lag

BlitzMax Forums/BlitzMax Programming/freeprocess lag

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I'm writing alot of data to a pipestream to another process, reading it by using stdio (using a new TCStandardIO object).

Should I be flushing the pipestream after writing data?

Since there is no readavail for TCStandardIO how can I be sure the data is already buffered before reading?

I keep getting a TStreamReadException if I don't put a huge delay before trying to read data from TCStandardIO.

I created a new TCStandardIO object because the existing StandardIOStream didn't work on small data tests using read/write int and string. The data is being encrypted so I couldn't use read/write line, because the encryption could generate a return char.