private void StartReadInlay2()
{
byte[] cSN = new byte[8];
byte[] sw12 = new byte[2];
string strsw12 = "", errdes = "", result = "";
test1_2 = new Initialisation();
test1_2.logmode = Convert.ToInt32(ConfigurationSettings.AppSettings["LogMode"]);
test1_2.iChipType = GetChipType(lblChipType.Text.Trim());
//--initialise test
result = test1_2.Initialise(1, **configXML.fnSamSlot**, configXML, ref cSN, ref sProgress1_2, ref lProcess1_2, ref sw12, ref errdes);
scSN1_2 = Hex.ToHexString(test1_2.chipID);
strsw12 = Hex.ToHexString(sw12);
if (strsw12.Equals("0000"))
errInlay1_2 = result.ToString();
else
errInlay1_2 = result.ToString() + strsw12;
lProcess1_2 = 2;
if(!errInlay1_2.Equals(""))
StatusInlay1_2 = false;
else
StatusInlay1_2 = true;
}
views:
73answers:
2
A:
well for starters your entire code example is in C# and will definitely blow up if you're trying to write a VB.NET application.
rockinthesixstring
2010-07-28 03:25:57
Sorry for the wrong info.. Its a C# script. not vb.net..
nashprem
2010-07-28 03:27:37
A:
What is "**configXML.fnSamSlot**"? Why are there asterisks around it? In any case, "configXML" is the only variable that can be null there, since test1_2 was instantiated above. Why didn't you just use the debugger, set a breakpoint on that line, and inspect each variable to see what's null?
Kirk Woll
2010-07-29 01:04:14