Hello,
I followed the example given on the webpage in subject. Since the external program I start returns a lot of data, I needed to use the example 'Reading large output'.
Everything functions well. The program starts, the output is being captured, but once the program exits and my application is emtying the pipe, I get lots or trash at the end of the captured data. It seems, that I read a lot of crap from the uninitialized buffer which is permanently attached to the end of the memorystream !?
Any advice how to fix this issue ?
Thanks a million !