Beispiel #1
0
        public static void fAppError(LaunchTool _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);
                // }
            }

            //}
        }
Beispiel #2
0
        public void ReadStdErr()
        {
            string _sLine;

            if (oTool.dError != null)
            {
                try {
                    while (!proc.HasExited)
                    {
                        _sLine = proc.StandardError.ReadLine();
                        if (_sLine != "")
                        {
                            oTool.dError(oTool, _sLine);
                        }
                        else
                        {
                            Thread.CurrentThread.Join(1);
                        }
                    }
                } catch (Exception e) { Output.TraceError("Error: " + e.Message); }
            }
        }