Menu

#1 WriteRead causing NullReferenceException

open
nobody
None
5
2011-10-07
2011-10-07
Adam Demasi
No

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

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.