T
Terry Olsen
Dim clt as TcpClient
Dim stm as NetworkStream
clt = New TcpClient()
clt.Connect("192.168.0.200", 9999)
Do Until clt.Connected
Loop
stm = clt.GetStream
' --The following line throws "Object reference not set to an instance of an
object."
stm.BeginRead(buf, 0, 4096, AddressOf ReadEvent, Nothing
' --This also throws the same exception
stm.Close
I can find nothing in the documentation that says this is wrong.
Help? Thanks.
Dim stm as NetworkStream
clt = New TcpClient()
clt.Connect("192.168.0.200", 9999)
Do Until clt.Connected
Loop
stm = clt.GetStream
' --The following line throws "Object reference not set to an instance of an
object."
stm.BeginRead(buf, 0, 4096, AddressOf ReadEvent, Nothing
' --This also throws the same exception
stm.Close
I can find nothing in the documentation that says this is wrong.
Help? Thanks.