VB6 Winsock bug

I am using a Winsock object to send a receive messages using UDP protocol. It seems like sometimes the same message arrives or being sent twice, I read an article on Microsoft's web site that says that is a bug in DataArrival event that causes it to fire twice but it does not offer a solution to the problem, Any idea how to resolve that problem?
[352 byte] By [atuvy] at [2007-11-20 11:31:06]
# 1 Re: VB6 Winsock bug
I read an article suggesting that I close the object using "Call Winsock1.Close" is that the way to go? I am not able to open the object again after that, How do I open?
atuvy at 2007-11-9 19:33:08 >
# 2 Re: VB6 Winsock bug
Have a link?
dglienna at 2007-11-9 19:34:14 >
# 3 Re: VB6 Winsock bug
Yes, DataArrival may occur multiple times for a large transfer, and you get no indication of the total size coming at you. I think the packet size is basically whatever is used by the network. I seem to remember sending a "header" that indicated the total transfer size, so the receiving end could process the stream appropriately.
BytePtr at 2007-11-9 19:35:12 >