E
E. Cox
My PC has recently developed a problem with Winsock. I think I know what
might have caused it but I don't know the exact cause to fix. I've tried
several of the fixes such as:
Removing my Winsock Registry entries
Removing the Winsock DLLs
Removing the Network components & NIC
Here's what I think caused it. I had some old VB source code that has
always worked and it uses MSWINSCK.OCK. I was adding features to my old
source code and my program was working flawlessly. Then I thought I
would have the Client ping the Server before even trying to Connect. I
grabbed some other old source code (too old) to do the ping and it was
using WSOCK32.DLL. For a while they both worked together but then the
program no longer connected. It would get a "10061: Connection
Forcefully rejected" (and my Server was listening on the correct port).
I think me using V1.0 and V2.0 Winsocks at the same time messed it up.
But now it's not just my VB program that has the problem. When I open up
a DOS window and try to ftp to any server I get:
For anyone still following me there was one other thing that might help.
What made me think it was caused by mixing of the 2 Winsocks is that the
"Winsock_Send.Connect" changed to "Winsock_Send.connect" (lowercase c)
which is how it was in my Module that was using Winsock V1.0.
Can anyone tell me how to fix this problem so I can resume developing my
program?
Thanks,
E. Cox
might have caused it but I don't know the exact cause to fix. I've tried
several of the fixes such as:
Removing my Winsock Registry entries
Removing the Winsock DLLs
Removing the Network components & NIC
Here's what I think caused it. I had some old VB source code that has
always worked and it uses MSWINSCK.OCK. I was adding features to my old
source code and my program was working flawlessly. Then I thought I
would have the Client ping the Server before even trying to Connect. I
grabbed some other old source code (too old) to do the ping and it was
using WSOCK32.DLL. For a while they both worked together but then the
program no longer connected. It would get a "10061: Connection
Forcefully rejected" (and my Server was listening on the correct port).
I think me using V1.0 and V2.0 Winsocks at the same time messed it up.
But now it's not just my VB program that has the problem. When I open up
a DOS window and try to ftp to any server I get:
ftp: connectftp: connect :Unknown error number
For anyone still following me there was one other thing that might help.
What made me think it was caused by mixing of the 2 Winsocks is that the
"Winsock_Send.Connect" changed to "Winsock_Send.connect" (lowercase c)
which is how it was in my Module that was using Winsock V1.0.
Can anyone tell me how to fix this problem so I can resume developing my
program?
Thanks,
E. Cox