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:
  1. ''' <summary>
  2.     ''' Sends binary data.
  3.     ''' </summary>
  4.     Public Sub sendData(ByVal data() As Byte, Optional ByVal curStream As NetworkStream = Nothing)
  5.         Try
  6.             Dim endbytes() As Byte = System.Text.Encoding.ASCII.GetBytes("{682427e7-6a56-4513-87f1-2dec81ddae2d}")
  7.  
  8.             Dim lenBytes() As Byte = System.Text.Encoding.ASCII.GetBytes(data.Length)
  9.  
  10.             curStream.Write(lenBytes, 0, lenBytes.Length)  '<------- when paused, cursor goes here with Green arrow (it says it will continue here but it never does).
  11.             curStream.Write(endbytes, 0, endbytes.Length)
  12.  
  13.             curStream.Write(data, 0, data.Length)
  14.             curStream.Flush()
  15.  
  16.         Catch
  17.  
  18.         End Try
  19.  
  20.         'If curStream IsNot Nothing Then
  21.         '    curStream.Write(data, 0, data.Length)
  22.         'End If
  23.  
  24.     End Sub