中国开发网: 论坛: 程序员情感CBD: 贴子 568158
haitao
好像也是在循环,只是每次PeekNamedPipe都没发现有数据(bread=0),而命令行实际上正在不断地输出每一行的。。。。。
PeekNamedPipe(read_stdout, pBuf, iBufSize, @bread, @avail, nil);
//check to see if there is any data to read from stdout
if (bread <> 0) then begin
if (iBufSize < avail) then begin // If BufferSize too small then rezize
iBufSize := avail;
ReallocMem(pBuf, iBufSize);
end;

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录