Thank you. I will try again with multi threading.

2015-10-09 22:10 GMT+07:00 Sven Barth <[email protected]>:

> Am 09.10.2015 16:37 schrieb "Kiên Nguyễn Tiến Trung" <[email protected]>:
> >
> > 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 receiving
> profess is ready to process more input. Of course you should process it's
> output, cause if it can't write into its output anymore it can't normally
> read from its input either ;)
> That said you could write into the Input in a separate thread, this way
> your GUI stays responsive.
>
> Regards,
> Sven
>
> --
> _______________________________________________
> Lazarus mailing list
> [email protected]
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to