Multithreadeing and activex.exe
Posted on 2001-07-27
I have an app that needs to update upto 30 clients using tcpip over a slow link. At the moment it does this sequentially..so takes around 30 seconds to do them all. As the protocol is quite slow..ie there is a lot of waiting for anserbacks and stuff...I thought AHHH multithreading! So looking at the VB6 help I found activex.exe files would do the trick and I could set them to one thread per object. I could then generate multiple instances..all in there own thread updating the remote sites...BUT it doesnt work!. When i create an instance of the object and its starts the transaction, my main calling programm stops..until the first object is finished and then creates the next one etc....so im no better off...
Any ideas anyone? Am i doing the wrong thing...can I do multithreading any other way???