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.
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.