public static void fAppError(LauchTool _oThis, string _sOut) { // lock(Data.oLockError) { if (_oThis.dError != null) { _oThis.dError(_oThis, _sOut); } else { /* * if(_sOut.Length > 3 && _sOut[3] == '%') { * Console.Write( "\r\r" + _sOut.Substring(4,_sOut.Length-4) ); * }else { */ Debug.fTrace(_sOut); // } } //} }
public void ReadStdErr() { string _sLine; if (oTool.dError != null) { while (!proc.HasExited) { _sLine = proc.StandardError.ReadLine(); if (_sLine != "") { oTool.dError(oTool, _sLine); } else { Thread.Sleep(1); } } } }