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 ...
Visits by Source
Users who voted for this posting