GetString and GetChars error?

tical

Newcomer
Joined
Oct 1, 2003
Messages
2
Hey everyone,

I'm having an issue with the ASCII.GetString and GetChars methods. I put a watch on GetChars and when trying to decode the byte array produced below, I see this in the value:

Overload resolution failed because no accessible 'GetString' accepts this number of arguments

The byte array is a normal array, nothing fancy and it has around 130 bytes to it (sometimes even less... i've gotten this error with 64), I can watch these and expand the array just fine... i've also done a for loop on the byte array and displayed all the decimals in a console without any wierd issues...

I can't figure out whats wrong here and why I would be getting this error when trying to convert from bytes to a string.

Any insite will be much appreciated, and yes... thats winsock in vb.net

Public Sub winsock1_DataArrival(ByVal eventSender As System.Object, ByVal eventArgs As AxMSWinsockLib.DMSWinsockControlEvents_DataArrivalEvent) Handles winsock1.DataArrival

Dim idata As Byte()
Dim incoming As String

winsock1.GetData(idata)
incoming = ASCII.GetChars(idata)
...
 
Back
Top