Ejemplo n.º 1
0
        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);
                // }
            }

            //}
        }
Ejemplo n.º 2
0
        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);
                    }
                }
            }
        }