StdError() private method

private StdError ( string message ) : void
message string
return void
Example #1
0
        public override void StdError(string error)
        {
            //System.Diagnostics.Debug.Write("JERROR: " + error);

            lock (_errorMessages)
            {
                _outputMessages.Append(error);

                int rIndex = _errorMessages.ToString().IndexOf("\r\n");

                while (rIndex > -1)
                {
                    string line = _errorMessages.ToString().Substring(0, rIndex);
                    _errorMessages = _errorMessages.Remove(0, rIndex + 2);

                    _viewer.StdError(line);

                    if (_formatHandler != null)
                    {
                        _formatHandler.StdError(line);
                    }

                    rIndex = _errorMessages.ToString().IndexOf("\r\n");
                }
            }
        }
Example #2
0
        public override void StdError(string error)
        {
            lock (_errorMessages)
            {
                _errorMessages.Append(error);

                int rIndex = _errorMessages.ToString().IndexOf("\r\n");

                while (rIndex > -1)
                {
                    string line = _errorMessages.ToString().Substring(0, rIndex);
                    _errorMessages = _errorMessages.Remove(0, rIndex + 2);

                    _viewer.StdError(line);

                    if (_formatHandler != null)
                    {
                        _formatHandler.StdError(line);
                    }

                    rIndex = _errorMessages.ToString().IndexOf("\r\n");
                }
            }
        }