The IDE seems to get stuck on this one line of code in our SendData. I wanted to see what you recommend to fix or debug this. We have tried a few debug.print type things. We are just getting some serialization over the network setup and tested.
vb Code:
''' <summary>
''' Sends binary data.
''' </summary>
Public Sub sendData(ByVal data() As Byte, Optional ByVal curStream As NetworkStream = Nothing)
Try
Dim endbytes() As Byte = System.Text.Encoding.ASCII.GetBytes("{682427e7-6a56-4513-87f1-2dec81ddae2d}")
Dim lenBytes() As Byte = System.Text.Encoding.ASCII.GetBytes(data.Length)
curStream.Write(lenBytes, 0, lenBytes.Length) '<------- when paused, cursor goes here with Green arrow (it says it will continue here but it never does).
curStream.Write(endbytes, 0, endbytes.Length)
curStream.Write(data, 0, data.Length)
curStream.Flush()
Catch
End Try
'If curStream IsNot Nothing Then
' curStream.Write(data, 0, data.Length)
'End If
End Sub