Hello
I'm writing a dll in C# 2010 and i want to fill the "Details" box in the Run-Time error popup in case of an error
I fill the ErrorMessage string in Teststand but in the popup box "Run-Time Error" it says "No details available"
How can i sent the ErrorMessage string to the "Details:" box in the "Run-Time Error" popup
This is an example of my C# code
public void LABPRN_ExecuteJob(ref bool ErrorOccured, ref int ErrorCode, ref string ErrorMessage)
{
try
{
if (_sTmpFileHandle != null)
{
_sTmpFileHandle.Close();
_sTmpFileHandle.Dispose();
}
//Rename file from .tmp to .job
File.Move(sTmpPathName, _sJobPathName);
_sTmpPathName = System.String.Empty;
_sJobPathName = System.String.Empty;
}
catch (Exception ex)
{
ErrorOccured =true;
ErrorCode = -1;
ErrorMessage = ex.Message;
}
}
thanks in advance
Tonnie