gregrowles Level: Trainee
 Registered: 04-07-2006 Posts: 1
|
Winsock Ctl causes application to Hang/Freeze
Has anyone had any trouble using winsock on Windows 2000? After I open my form with the winsock ActiveX control, parse an IP and port and 'Connect' - my whole application freezes. It hogs the CPU for some reason.
I was thinking it could be something to do with the network environment but I keep thinking I've overlooked something:
' * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
If Me.WSobj.state <> 0 Then
Do Until Me.WSobj.state = 0
Me.WSobj.Close
sSleep 10
Loop
End If
Me.WSobj.Protocol = 0
Me.WSobj.RemoteHost = CStr(GetSystemSetting("FreedomProxyIP", Text))
Me.WSobj.RemotePort = CLng(GetSystemSetting("FreedomProxyPort", Number))
Me.WSobj.Connect
'* * * CODE FREEZES AT THIS POINT * * * *
Thx
Greg
[Edited by gregrowles on 04-07-2006 at 07:02 PM GMT]
|