Click here to Skip to main content
15,898,222 members
Home / Discussions / COM
   

COM

 
GeneralRe: Recommended Book on COM :: C++ Pin
valikac22-Oct-02 13:38
valikac22-Oct-02 13:38 
GeneralRe: Recommended Book on COM :: C++ Pin
Ranjan Banerji23-Oct-02 6:28
Ranjan Banerji23-Oct-02 6:28 
GeneralRetrieve exchange user information Pin
Anonymous19-Oct-02 1:56
Anonymous19-Oct-02 1:56 
GeneralRe: Retrieve exchange user information Pin
Stephane Rodriguez.21-Oct-02 1:49
Stephane Rodriguez.21-Oct-02 1:49 
Generalres: protocol and IMoniker Pin
mstephens17-Oct-02 22:47
mstephens17-Oct-02 22:47 
GeneralRe: res: protocol and IMoniker Pin
Stephane Rodriguez.21-Oct-02 1:51
Stephane Rodriguez.21-Oct-02 1:51 
GeneralRe: res: protocol and IMoniker Pin
mstephens21-Oct-02 2:03
mstephens21-Oct-02 2:03 
GeneralGetActiveObject() failing... Pin
17-Oct-02 11:12
suss17-Oct-02 11:12 
Alrighty, here's the setup.

Machine A has a local object server (.exe) called AFIT. Another application creates the AFIT object and registers it using RegisterActiveObject(). Another server is available to local and remote clients called AFITFinder, which provides one method that returns the results of GetActiveObject().

Machine B has a client that creates an AFITFinder on Machine A, and uses it to get an interface to the AFIT object from Machine A's ROT.

This all works fine.

Machine B can create an AFITFinder on Machine A no problem for the first 5 minutes (very repeatable) after AFIT has been created. If, on the other hand, I wait for 5 minutes or more, then the GetActiveObject() call fails on Machine A. That is, Machine B creates the AFITFinder on Machine A (successfully), calls GetAFIT() (marshalled successfully), but in GetAFIT(), the call to GetActiveObject() fails with 0x800401E3 (Operation Unavailable).

I've tried changing every security setting I can find. It just doesn't make sense that the same call becomes unavailable after leaving the connection idle for 5 minutes.

Have any of you ever heard of a timeout like this? Is there some security setting that time's itself out in a DCOM connection?

Is there some reason the ROT should drop my object after a certain period of time? It's registered as "strong" and definitely NOT being revoked in the meantime.

Any help would be greatly appreciated. Smile | :)

[edit]
I just tested it with a local client and it failed with the same problem. That is, Machine A created a local AFITFinder object and failed in the same spot.
[/edit]

J
GeneralRe: GetActiveObject() failing... Pin
Jason Henderson18-Oct-02 3:14
Jason Henderson18-Oct-02 3:14 
GeneralRe: GetActiveObject() failing... Pin
Member 1035854718-Oct-02 3:18
Member 1035854718-Oct-02 3:18 
GeneralNeed help for IDispatch. Pin
sonshiro17-Oct-02 0:43
sonshiro17-Oct-02 0:43 
GeneralRe: Need help for IDispatch. Pin
Stephane Rodriguez.17-Oct-02 1:27
Stephane Rodriguez.17-Oct-02 1:27 
QuestionDCOM server enum clients? Pin
Jason Henderson16-Oct-02 11:17
Jason Henderson16-Oct-02 11:17 
AnswerRe: DCOM server enum clients? Pin
Brian van der Beek21-Oct-02 1:33
Brian van der Beek21-Oct-02 1:33 
GeneralThreading lockup Pin
Robin Cornelius16-Oct-02 9:25
Robin Cornelius16-Oct-02 9:25 
GeneralRe: Threading lockup Pin
Daniel Turini16-Oct-02 9:36
Daniel Turini16-Oct-02 9:36 
GeneralRe: Threading lockup Pin
Robin Cornelius16-Oct-02 11:21
Robin Cornelius16-Oct-02 11:21 
GeneralCOM Licensing Pin
Heath Stewart16-Oct-02 7:44
protectorHeath Stewart16-Oct-02 7:44 
Generaldo i need a buffered mouse for this.. Pin
lupus15-Oct-02 14:59
lupus15-Oct-02 14:59 
GeneralCComPtr.CoCreateInstance hangs Pin
tomc15-Oct-02 3:48
tomc15-Oct-02 3:48 
GeneralRe: CComPtr.CoCreateInstance hangs Pin
Stephane Rodriguez.15-Oct-02 4:34
Stephane Rodriguez.15-Oct-02 4:34 
QuestionWhere can I find the OLE for Retail POS(OPOS) sample codes? Pin
julio huang15-Oct-02 1:46
julio huang15-Oct-02 1:46 
GeneralNavigating the namespace Pin
Matt Eckerson14-Oct-02 11:49
Matt Eckerson14-Oct-02 11:49 
QuestionHow can I create a .tlb file for a MFC-base component? Pin
billdavid13-Oct-02 16:25
billdavid13-Oct-02 16:25 
AnswerRe: How can I create a .tlb file for a MFC-base component? Pin
Michael P Butler14-Oct-02 6:12
Michael P Butler14-Oct-02 6:12 

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.