borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Beauty Pageant System!)Next Topic (connecting to a ftp server) New Topic New Poll Post Reply
AndreaVB Forum : Network : Winsock Ctl causes application to Hang/Freeze
Poster Message
gregrowles
Level: Trainee

Registered: 04-07-2006
Posts: 1

icon 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]

04-07-2006 at 11:56 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Network : Winsock Ctl causes application to Hang/Freeze
Previous Topic (Beauty Pageant System!)Next Topic (connecting to a ftp server) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder