TcpClient client = new TcpClient();
IPAddress ipaddr=IPAddress.Parse(HisIp.Trim());
IPEndPoint point = new IPEndPoint(ipaddr, int.Parse(HisPort.Trim()));
client.Connect(point); //执行到这步时抛异常:由于代码已经过优化或者本机框架位于调用堆栈之上,无法计算表达式的值;这是什么问题?
client.Close();
return 0;
IPAddress ipaddr=IPAddress.Parse(HisIp.Trim());
IPEndPoint point = new IPEndPoint(ipaddr, int.Parse(HisPort.Trim()));
client.Connect(point); //执行到这步时抛异常:由于代码已经过优化或者本机框架位于调用堆栈之上,无法计算表达式的值;这是什么问题?
client.Close();
return 0;
回调函数在EndXXX之后 里不应该有让线程等待的代码,不然会出现很多问题的