Hi,
I have developed a ftp client programme using MSWinsock control in vb6. Everything goes fine. But, in case of donwloading a file in intranet, data socket is getting closed before getting Full file. so for this, on close event of data socket, i added a check that whether the full file received or not, if received i am closing if not leaving. in this case, socket state is already changed to sckClosing , but still dataarrival event occours. But, if I try to retrieve data using Getdata method, it generates an error:40006-Wrong protocol or connection state for the requested transaction or request, because of socket state is changed and it is in closing state.
can any one please help me in fixing this bug..? is this the winsock control Bug?
If so, is there fix for this?
Thanking you in advance.
Regards
Praveenp