[fpc-pascal] TProcess vs RunProcess()

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Sun Jan 29 18:46:22 CET 2017


On 2017-01-29 07:59, Lars wrote:
> So if you run a process and nothing prints to stdout, and there is some
> data printed to stderr, I do not know how to capture it. Which makes me
> want to try TProcess instead


Indeed, that is one of the big differences between TProcess and
ExecuteProcess. I use TProcess often to execute something and then
capture the output results.  fpGUI's example IDE (Maximus) shows how it
can be done with TProcess.

Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp



More information about the fpc-pascal mailing list