Welcome, Guest
Username: Password: Remember me
Discussions for CodeTyphon Object Pascal Programming Language
  • Page:
  • 1

TOPIC:

How to use TAsyncProcess to get all output 11 months 3 weeks ago #18170

  • choki
  • choki's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 27
  • Thank you received: 0
How to use TAsyncProcess to get all output in realtime, 
try to catch data from event AsyncProcess1ReadData but 
this event just like never execute


my code is veri simple,
poUsePipes is enabled
commandLine = /usr/bin/ls 
procedure TForm1.AsyncProcess1ReadData(Sender: TObject);
begin
  ShowMessage(AsyncProcess1.Output.ReadAnsiString);
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
  AsyncProcess1.Active:=True;
end;
 

Please Log in or Create an account to join the conversation.

  • Page:
  • 1