Please help because this bug is driving me nuts. Ok I am getting
Conversion Buffer Overflow exception but I have no idea why or how to
fix it. My code looks something like this (C#)
TcpClient tcpSendRecieveT o = new TcpClient(…);
NetworkStream ns = tcpSendReceiveT o.GetStream();
byte[] dataToSend = transferData.ge tDataBytes();
BinaryWriter binaryWriterCli ent = new BinaryWriter(ns );
BinaryReader binaryReaderCli ent = new BinaryReader(ns );
binaryWriterCli ent.Write(dataT oSend);
binaryWriterCli ent.Flush();
while(nRead >0)
{
//****** this is where the exception happens
nRead = binaryReaderCli ent.Read();
}
Conversion Buffer Overflow exception but I have no idea why or how to
fix it. My code looks something like this (C#)
TcpClient tcpSendRecieveT o = new TcpClient(…);
NetworkStream ns = tcpSendReceiveT o.GetStream();
byte[] dataToSend = transferData.ge tDataBytes();
BinaryWriter binaryWriterCli ent = new BinaryWriter(ns );
BinaryReader binaryReaderCli ent = new BinaryReader(ns );
binaryWriterCli ent.Write(dataT oSend);
binaryWriterCli ent.Flush();
while(nRead >0)
{
//****** this is where the exception happens
nRead = binaryReaderCli ent.Read();
}