WriteRead causing NullReferenceException
Status: Inactive
Brought to you by:
ghell
I am using this library with a Visual Basic.NET 2010 and everything is working until I need to use WriteRead.
My code is:
Dim response() As Byte = prog.WriteRead(16, {&H76, 90, 90, 90, 90, 90, 90, 90})
And it gives me a NullReferenceException, saying that the array of data should be used with the New keyword, or by checking that it is not Nothing. I tried doing both and they didn't work.
Am I doing something wrong here? Thanks in advance.
Ad@m