Vote UpVote

Capturing console output with Delphi 2010/XE (revised)

Random thoughts on coding – Following my previous post (Capturing console output with Delphi 2010/XE) and with all the great comments received on it, I have decided to publish the new solution provided by Lübbe Onken which solves the hanging issue when capturing the output for different kind of commands like ping, netstat, etc. The problem occurs on the last ReadFile which this solution will fix.Here I'm summarizing Lübbe Onken comments on this issue:"The current implementation assumes that if the external process is not finished yet, there must be something available to be read from the read pipe. This is ...
Favorite? Off-Topic? Jordi Corbilla @ 2012-12-13 20:04


Visits: 968
Votes: 7
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Jan Derk
Paul Thornton
Primoz Gabrijelcic
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)