Wasn't aware of the 64bit OS issue, I am compiling as AnyCPU, but running on a 32bit OS. A re-compile as 32bit made no change.
private void button5_Click(object sender, EventArgs e)
{
int Adr = 02;
int Len = 8;
TData dat = Receive(Adr,Len);
if (dat.BytesRead == 0)
{
StatusLabel1.Text = "Read Failure";
}
string s = dat.TextData;
txtBox1.Text = s;
}
reports "Read Failure" and the debug shows HasData as false.