Click to See Complete Forum and Search --> : Help Server Creating Clients - Multi Threading


Arjun M
November 3rd, 1999, 07:32 AM
Hi,
I have a server (Activex Exe) which will create 4 clients (Activex DLLs). The server should give onbe record each for the clients to process. Once the client is finished processing, the free bit is set.
My problem is that, once I start the process of one client, the server is waiting until the process of that client is completed. I wish to just instantiate each client and call the Process function and leave it on its own and once the Server finishes allocating records to all free clients, it will come back to check if the client is free and then allocate to it the next record.
As of now, I am not able to do the parallel operations on clients simultaneously.
Please send me any tips if some one has the answer.
Thanking you in advance
Arjun

Software Engineer
Bangalore

Mikesc
November 3rd, 1999, 09:04 AM
I'm just learning this stuff myself but I think your problem lies in apartment threading. I believe when you create the DLLs through the ActiveXEXE they all get lumped on the same thread in the same apartment thereby creating the problem. I don't really know what solution there is but I have a hunch you might have to use MTS. I would really like to hear how to handle this too. Anyone??