|
-
August 12th, 2001, 10:19 AM
#1
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
-
August 13th, 2001, 01:18 AM
#2
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
-
August 13th, 2001, 05:46 AM
#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
-
August 13th, 2001, 06:07 AM
#4
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
-
August 23rd, 2001, 04:03 PM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|