PDA

Click to See Complete Forum and Search --> : MultiThreading Problem


Dheeraj
Jul 3rd, 2001, 12:08 AM
Hi ,
This is my first post to the forum, Hope would get the solutions asap.

I have two dlls

Dll A - Calls another dll (Dll B) in Loop for 5 times

both the dlls are in MultiUse and deployed on COM+ server

I have put in a message boxes at places to test the Multithreading property .

What I find is That they are executing sequentially . one Loop in Dll waits till Dll B returns the COntrol.

I require that Dll A should initiate a Thread and return the control

and all the threads Execute simultaniously ..


Can Anybody suggest a way out ??

Thanks in Advance..

Dheeraj

Keyser_Soze
Jul 4th, 2001, 05:36 AM
Your problem is that VB DLL's cannot create their own threads. They will run sequencially. A VB ActiveX EXE will run in its own process (so its own thread). If the class in the EXE is SingleUse then a new EXE will be loaded into its own process and run concurrently with the previous EXE's. However, EXE's cannot be placed into the MTS. You can call an EXE from a DLL within the MTS, though.

Hope this helps.
K.Soze

Paul Warren
Jul 10th, 2001, 11:49 AM
You can create threads in .Net and beta 2 is now available. Just thought you might like to know.