Click to See Complete Forum and Search --> : COM+ & multithreading
dok
August 12th, 2001, 10:19 AM
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
Cakkie
August 13th, 2001, 01:18 AM
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
slisse@planetinternet.be
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
dok
August 13th, 2001, 05:46 AM
Thank you for answer. But can you describe how to start more then one instance of a dll in details ?
Thanks,
Konstantin
Cakkie
August 13th, 2001, 06:07 AM
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
slisse@planetinternet.be
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
Jim Bassett
August 23rd, 2001, 04:03 PM
Can you describe how to make use of an already running instance of a COM+ object.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.