Recent

Author Topic: Windows command via Lazarus  (Read 6646 times)

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12984
  • FPC developer.
Re: Windows command via Lazarus
« Reply #15 on: December 04, 2015, 11:36:48 am »
The whole stderr handling is a fix from pierre who found out that output stalls on windows as soon as the error pipe reaches 10MB (and possibly less than that in terminal service connections). So he added code to drain stderr too, but it drains now to a local variable.

Anyway, the idea is to make the core loop of intruncommand a method of TProcess so you can easier make variants without changing tprocess.

zeljko

  • Hero Member
  • *****
  • Posts: 1998
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Windows command via Lazarus
« Reply #16 on: December 04, 2015, 11:54:11 am »
Thanks for info :)

 

TinyPortal © 2005-2018