Click here to Skip to main content
15,915,742 members
Home / Discussions / COM
   

COM

 
GeneralIDataObjectImpl ATL Pin
Braulio Dez19-Feb-02 23:37
Braulio Dez19-Feb-02 23:37 
GeneralAbout using TLS in COM component Pin
16-Feb-02 22:11
suss16-Feb-02 22:11 
GeneralRe: About using TLS in COM component Pin
Joao Vaz21-Feb-02 4:44
Joao Vaz21-Feb-02 4:44 
GeneralDrag and Drop Pin
N.Bharadwaj7715-Feb-02 21:09
N.Bharadwaj7715-Feb-02 21:09 
GeneralDynamically Loading DLL Functions in VB Pin
Tim Rymer15-Feb-02 9:25
Tim Rymer15-Feb-02 9:25 
GeneralRe: Dynamically Loading DLL Functions in VB Pin
Not Active16-Feb-02 2:46
mentorNot Active16-Feb-02 2:46 
GeneralCOM: MSN Messenger Pin
PsychoBrat14-Feb-02 18:38
PsychoBrat14-Feb-02 18:38 
QuestionAnyone have experience with multithreaded ATL COM/COM+ DLL's and IIS? Pin
Matt Philmon13-Feb-02 17:46
Matt Philmon13-Feb-02 17:46 
I need a little advice from someone that's needed to write multi-threaded COM objects to perform time consuming tasks, but that are loaded by IIS and exist on a web server.

My problem is that my COM object provides communication to a set of API's that retrieve data from an IMS database. Most requests for information through my component take 5-7 seconds, but some can take as long as 3-5 minutes depending on the data requested. At any rate, a regular COM component can (to my knowledge) only be loaded once by IIS allowing only a single instance to be loaded at a time. Since this component services a web client, I obviously need to be able to deal with constant incoming requests for data. Originally my component was a straight ATL COM component, developed as an STA (to allow use by scripting code from an ASP page). However, though it's apartment may be Single Threaded, it spun threads for each request so it could always be handling incoming requests without users having to wait on the previous request to complete. I handled adding in a message pump to deal with the problems of having a multi-threaded STA COM component. This worked very well for all the shorter requests. However, the longer requests would cause instability that I could never track down. Ultimately I had to remove the mult-threaded behavior in lieu of handling one call at a time.

The next thing I tried (I've had COM training, but not COM+) was rebuilding my component as a COM+ DLL. I didn't get very advanced, but now the component can be loaded in Component Services and allows pooling (if wanted) and most of the other things available to COM+ DLL's. My hope was to utilize object pooling to let COM+ Services sustain a collection of objects. I thought this would allow IIS to simply take one of the existing pooled objects and use it, basically allowing multiple objects to be created and used and end this wait in line crap. Apparently I've missed something.

If anyone has more experience in this area I could sure use some pointers.

Thanks,
Matt Philmon
GeneralExisting Applications and COM Pin
13-Feb-02 1:13
suss13-Feb-02 1:13 
GeneralRe: Existing Applications and COM Pin
13-Feb-02 6:54
suss13-Feb-02 6:54 
GeneralRe: Existing Applications and COM Pin
Serge Baltic20-Mar-02 1:05
Serge Baltic20-Mar-02 1:05 
GeneralMS WebBrowserControl versoin compatability (iE 4 and 5) Pin
noirs12-Feb-02 10:29
noirs12-Feb-02 10:29 
QuestionCOM and MS Outlook? Pin
12-Feb-02 8:25
suss12-Feb-02 8:25 
AnswerRe: COM and MS Outlook? Pin
12-Feb-02 9:27
suss12-Feb-02 9:27 
AnswerRe: COM and MS Outlook? Pin
Amit Dey12-Feb-02 23:13
Amit Dey12-Feb-02 23:13 
GeneralMS DTC log Pin
pba_12-Feb-02 6:43
pba_12-Feb-02 6:43 
GeneralCOM Method Call Pin
12-Feb-02 1:45
suss12-Feb-02 1:45 
GeneralRe: COM Method Call Pin
Mazdak12-Feb-02 7:47
Mazdak12-Feb-02 7:47 
Generalregistering/unregister components in MTS/COM+ Programmatically Pin
ramjan9-Feb-02 21:26
ramjan9-Feb-02 21:26 
GeneralRe: registering/unregister components in MTS/COM+ Programmatically Pin
Wictor Wilén11-Feb-02 21:24
Wictor Wilén11-Feb-02 21:24 
GeneralRe: registering/unregister components in MTS/COM+ Programmatically Pin
13-Feb-02 6:57
suss13-Feb-02 6:57 
GeneralVERY newbie COM question Pin
JDMoore8-Feb-02 0:05
JDMoore8-Feb-02 0:05 
GeneralRe: VERY newbie COM question Pin
Mazdak8-Feb-02 2:48
Mazdak8-Feb-02 2:48 
GeneralRe: VERY newbie COM question Pin
Mazdak8-Feb-02 2:53
Mazdak8-Feb-02 2:53 
GeneralRe: VERY newbie COM question Pin
Mazdak8-Feb-02 2:56
Mazdak8-Feb-02 2:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.