I have a form that has a single Winsock control on it. What i want to do is make several instances of that form so that i can utilize that winsock control on each instanced form so as to call out on the net and do certain tasks. The problem i have noticed when i do this is that it appears that only one of those running instances runs ok while the others seem to "BOG" down big time.
When making an instance of that form by:
Dim MyInstanceForm as Form1
Set MyInstanceForm = New Form1
Does this only make a single copy of the controls on that form...in this case the Winsock Control only really exists once in memory. So when i make tons of instances of this form and start to activate each Winsock on each instanced form it in fact is only accessing the single Winsock control from the original instance? So when i start using that control then when others begin to use that control it will be back logged because 1 instance is already using it?
What would be the best solution to solve this problem? Should i place ie. 30 different Winsock Controls (Indexed) on the Form i want instanced and for each instance i make it only uses its own pre-assigned Winsock control, depending on its instance #? Or is there a better way that will allow me to connect to the net with multi-instances without bog down and also use up low amounts of physical and virtual memory?
I hope this makes sense.