1.1 --- a/GUI/SoundGraphServer.cs Sat Apr 13 00:43:25 2013 +0200
1.2 +++ b/GUI/SoundGraphServer.cs Sun Apr 14 22:38:41 2013 +0200
1.3 @@ -365,15 +365,23 @@
1.4 */
1.5 public void SendMessage(string message)
1.6 {
1.7 + byte[] m8 = new byte[message.Length];
1.8 + int i = 0;
1.9 + foreach (char c in message)
1.10 + {
1.11 + m8[i]=System.Convert.ToByte(c);
1.12 + i++;
1.13 + }
1.14
1.15 - ASCIIEncoding encoder = new ASCIIEncoding();
1.16 - byte[] messageBuffer = encoder.GetBytes(message);
1.17 + //ASCIIEncoding encoder = new ASCIIEncoding();
1.18 + //byte[] messageBuffer = encoder.GetBytes(message);
1.19
1.20 - if (iStreamOutbound != null && iStreamOutbound.CanWrite)
1.21 - {
1.22 - iStreamOutbound.Write(messageBuffer, 0, messageBuffer.Length);
1.23 - iStreamOutbound.Flush();
1.24 - }
1.25 + if (iStreamOutbound != null && iStreamOutbound.CanWrite)
1.26 + {
1.27 + //iStreamOutbound.Write(messageBuffer, 0, messageBuffer.Length);
1.28 + iStreamOutbound.Write(m8, 0, message.Length);
1.29 + iStreamOutbound.Flush();
1.30 + }
1.31
1.32
1.33 }