Also, do not use the Winsock control in server environments, such as with Microsoft Internet Information Server (IIS) and Microsoft COM+, where scalability may be required.
Run-Time Error 429An application that creates the Winsock control dynamically at run time through the use of early binding runs at design time may fail at run time with error 429 if the application runs on a nondevelopment computer (a computer that does not have Visual Basic installed):
ActiveX component can't create object
Dim myWinSock As MSWinsockLib.Winsock
' Early binding does not work
Set myWinSock = New MSWinsockLib.Winsock
myWinSock.LocalPort = 5432
Dim myWinsock As MSWinsockLib.Winsock
' Form1 is hidden
Set myWinsock = Form1.myWinsock
myWinsock.LocalPort = 5432
ScalabilityThe Winsock control is designed for use in client or light-load server applications. Microsoft does not support the use of the control in multithreaded server environments, especially in IIS and COM+, where scalability may be important. Using this control in such an environment may cause unpredicatible issues including deadlocks. Microsoft recommends that you consider use of alternative technologies such as the Winsock API and the IO Completion Port (IOCP) in these cases.
ID do Artigo: 313984 - Última Revisão: 19 de mai de 2005 - Revisão: 1