I created a rather simple VB6 application that uses an array of winsock controls. I made this application to run as fast as possible.
Now I am getting errors & issues. My array of winsock controls, opens up to 100 winsock controls at time.
I can connect to each winsock using - winsock1(Index).Connect, send data & get data (Data Arrival) - however, all my data is being mixed up. For instance, I can lookup say 25 items. But then Item 1 gets 4-5 duplicate results. so Item 1's contents are over writing the content for items 2-5 etc.. Not sure if it makes sense, but all my winsock data is getting duplicated many times & all mixed up with other info.
I would like to be able to add a buffer, or some kind of control so that I can make sure that Item 1 only opens 1 connection, and rerieves the data for that connection only. Also, if there is an error, the connection will need to be opened again & try to retrieve data.
I would still like to keep the way the program runs by creating an array of winsock controls. I would just like to be able to handle & save the retrieved data better.
Should be a quick fix for someone who is an expert with VB 6.