Re: [Lazarus] Prevent from deadlock while writing something large to a pipe

2015-10-09 Thread Kiên Nguyễn Tiến Trung
Thank you. I will try again with multi threading. 2015-10-09 22:10 GMT+07:00 Sven Barth : > Am 09.10.2015 16:37 schrieb "Kiên Nguyễn Tiến Trung" : > > > > I want to send a big amount of data to a child process through pipe. > However, it is stated in the documentation that writing too much into t

Re: [Lazarus] Prevent from deadlock while writing something large to a pipe

2015-10-09 Thread Sven Barth
Am 09.10.2015 16:37 schrieb "Kiên Nguyễn Tiến Trung" : > > I want to send a big amount of data to a child process through pipe. However, it is stated in the documentation that writing too much into the pipe may cause a deadlock. That is not necessarily a deadlock. It just blocks until the receivin

[Lazarus] Prevent from deadlock while writing something large to a pipe

2015-10-09 Thread Kiên Nguyễn Tiến Trung
I want to send a big amount of data to a child process through pipe. However, it is stated in the documentation that writing too much into the pipe may cause a deadlock. TProcess.Input Input is a stream which is connected to the process' standard input file handle. Anything written to this stream