FIX: Winsock Control SendData Only Works Over the Latest Connection (245159)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q245159 SYMPTOMS
For a 32-bit Visual Basic application with multiple Winsock Control objects that maintain TCP connections to other socket applications, SendData() only works over the most recently established connection. This behavior is reproducible on versions prior to and include Microsoft Visual Studio SP3.
CAUSE
The event messages associated with each SendData() are flushed from the message queue by the latest socket connection. This causes data to queue up and with no event messages available to start the data send process for previous connections.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This bug was corrected in the latest service pack for Visual Studio 6.0. For additional information about Visual Studio service packs, click the following article numbers to view the articles in the Microsoft Knowledge Base: 194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why
194295 HOWTO: Tell That a Visual Studio Service Pack Is Installed To download the latest Visual Studio service pack, visit the following Microsoft Web site: REFERENCES
For additional information, see the following article or articles in the
Microsoft Knowledge Base: 183987 PRB: SendData Method Generates Error 40006
Modification Type: | Minor | Last Reviewed: | 12/12/2005 |
---|
Keywords: | kbHotfixServer kbQFE kbDSWNET2003Swept kbbug kbCtrl kbfix kbnetwork kbVS600sp4fix kbVS600sp5fix kbWinsock KB245159 |
---|
|