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
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
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
Re: COM+ & multithreading
Can you describe how to make use of an already running instance of a COM+ object.