Results 1 to 3 of 3

Thread: MultiThreading Problem

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Posts
    1

    Question MultiThreading Problem

    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

  2. #2
    New Member
    Join Date
    Jul 2001
    Posts
    4
    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

  3. #3
    Hyperactive Member Paul Warren's Avatar
    Join Date
    Jun 2000
    Location
    UK
    Posts
    282
    You can create threads in .Net and beta 2 is now available. Just thought you might like to know.
    That's Mr Mullet to you, you mulletless wonder.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width