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

TOPIC:

How to use TAsyncProcess to get all output 3 months 2 days ago #18170

  • choki
  • choki's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 12
  • 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