private void ErrorDataHandler(object sendingProcess, DataReceivedEventArgs errLine)
{
// Write the error text to the file if there is something
// to write and an error file has been specified.
if (!String.IsNullOrEmpty(errLine.Data))
{
profilePane.OutputStringThreadSafe(errLine.Data);
profile_output.WriteLine(errLine.Data);
}
}