CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2001
    Posts
    3

    COM+ & multithreading

    Hello

    Could anyone help me with multithreading at COM+ ActiveXDll? I've coded ActiveXDll on VB, which start PowerPoint session and process .ppt file. But i need to start 2 or more PowerPoint sessions at once. Does ActiveXDll on VB support pooling or could anyone propose another solution ?

    Thanks,
    Dok




  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: COM+ & multithreading

    VB COM+ componetns cannot be pooled, because they are single threaded. Object pooling requires multi threading. On the other hand, you can start more then one instance of a dll (each in its own process and each with it's own thread). So two instances of the same dll can run at the same time. You must however check if they are not using the same powerpoint session, cause this this can lead to unwanted results.

    Tom Cannaerts
    [email protected]

    Programming today is a race between software engineers striving to build bigger and better idot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  3. #3
    Join Date
    Aug 2001
    Posts
    3

    Re: COM+ & multithreading

    Thank you for answer. But can you describe how to start more then one instance of a dll in details ?

    Thanks,
    Konstantin


  4. #4
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: COM+ & multithreading

    It just creating two objects of the dll

    dim obj1 as MyDll.MyInterface
    dim obj2 as MyDll.MyInterface

    set obj1 = CreateObject("MyDll.MyObject")
    set obj2 = CreateObject("MyDll.MyObject")





    Tom Cannaerts
    [email protected]

    Programming today is a race between software engineers striving to build bigger and better idot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  5. #5
    Join Date
    May 1999
    Location
    Fort Worth Texas
    Posts
    614

    Re: COM+ & multithreading

    Can you describe how to make use of an already running instance of a COM+ object.


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

Featured