Threading issue with VB6
Posted on 2004-08-21
I am developing a winsock server using VB 6. I have created My winsock OCX using api programming in VB 6. Now that I have the OCX, I tried to load an array of my ocx in a vb exe project ( My Server Application , Chat server ).
For each connection, I would load one of my control using the index property of the ocx control.
I am using load srv(1) ' to load controls
and unload srv(1) ' to unload controls
The problem is that all the controls I load, work on the same thread as the parent application.
I need all my controls ( the whole array ) to share a thread pool. How can I do it.
I though of Activex EXE. So the problem is that I am not able to load an array of activex exe dlls in my exe project and use different events associated with the control. As My parent application needs to know certain issues like activity status, connected number , disconnected number, i need to use events. We are able to set the index property of a normal ocx in our project and load an array of that control, So then why cant we load an activex exe dll array.
Can some one please suggest me a solution for my problem
Thanks in advance
Noby E A