谢谢你的提醒,我怎么连这个都没有想到呢?我总是认为是我创建的对象就应该由我来管理(包括使用,free等),然而sendstream函数会剥夺我的这种权利,他会帮我free掉。看来我是没有注意这句话:The Windows socket object frees the stream when it is finished with it. 但我觉得文档还应该加上一句:Do not try to use the stream object any more in other place after using it in the SendStream call.但是这是Borland的事情:)
再次感谢!