Barista
09-17-2001, 12:52 PM
Hello,
What I'm using:
VB 6.0 SP 5
Win 2K SP 2
I am seeking help with a problem I am having with the MS Winsock OCX not receiving Binary data.
I wrote a ICQ style application for my frineds and familly to use. It works great, uses the MS Winsock.ocx to converse with a Server I built for it as well.
Most ALL conversations between the client and server are ASCII, however, I built a "Auto Update" feature into it that will download a binary file, a new EXE, through the existing open connection.
It works great on about all the machines, except one (My fathers, the one who needs a auto update more than anyone. Who would think replacing a EXE to be such a dounting task, hehehe).
The one machine that does not work is W2K SP 2 and seems to do this.
The Client tells the server it is ready for the Binary file.
The Server sends the binary file.
The Client "Data_Arrival" event NEVER FIRES when the server starts the Binary send.
At least as I can tell, it never fires. I haven't put VB on that machine to step through the code.
What I have tried;
Adding doevents to the start of the DataArival Event (Shrug).
Created a look on the server to only send 4K chunks with a DoEvents between them.
Pulling my hair (Not much help).
Has anyone else ever experienced this kind of oddity with the MS Winsock Control? I thinking about just rewiting the client using the Winsock API, however this would be a big change to the application, as well as a lot of work on my part, and a whole new interface to learn. I'm hoping that someone else has had this problem, and may have a solution.
I have searched the MS KB, and found a Bug that fits my problem to the T, however it pertains to the VB & CE Development enviornment.
Any advice would be greatly appreciated.
Thanks,
Bill
What I'm using:
VB 6.0 SP 5
Win 2K SP 2
I am seeking help with a problem I am having with the MS Winsock OCX not receiving Binary data.
I wrote a ICQ style application for my frineds and familly to use. It works great, uses the MS Winsock.ocx to converse with a Server I built for it as well.
Most ALL conversations between the client and server are ASCII, however, I built a "Auto Update" feature into it that will download a binary file, a new EXE, through the existing open connection.
It works great on about all the machines, except one (My fathers, the one who needs a auto update more than anyone. Who would think replacing a EXE to be such a dounting task, hehehe).
The one machine that does not work is W2K SP 2 and seems to do this.
The Client tells the server it is ready for the Binary file.
The Server sends the binary file.
The Client "Data_Arrival" event NEVER FIRES when the server starts the Binary send.
At least as I can tell, it never fires. I haven't put VB on that machine to step through the code.
What I have tried;
Adding doevents to the start of the DataArival Event (Shrug).
Created a look on the server to only send 4K chunks with a DoEvents between them.
Pulling my hair (Not much help).
Has anyone else ever experienced this kind of oddity with the MS Winsock Control? I thinking about just rewiting the client using the Winsock API, however this would be a big change to the application, as well as a lot of work on my part, and a whole new interface to learn. I'm hoping that someone else has had this problem, and may have a solution.
I have searched the MS KB, and found a Bug that fits my problem to the T, however it pertains to the VB & CE Development enviornment.
Any advice would be greatly appreciated.
Thanks,
Bill