|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: ArunKumar (akumar
OMNESYSINDIA.COM)Date: Fri Feb 15 2002 - 05:44:55 CST
Or u could try to use IMessageFilter::HandleIncomingCall
- dont know its limitatations -
but looks like it could fit the bill
arun
----- Original Message -----
From: <Klaus.Neuberger
NBGM.SIEMENS.DE>
To: <DCOM
DISCUSS.MICROSOFT.COM>
Sent: Friday, February 15, 2002 3:00 PM
Subject: Re: method call timeout?
> Hi Keith,
>
> you run into a big problem of DCOM. I am working a long time on solving
the
> problem, calling DCOM objects with a specific timeout. All our solutions
so
> far, have some leaks where we run into ugly timeouts of DCOM again and
> which are not under our control.
>
> I knew of 3 different possibilities.
>
> 1. Do calls to DCOM on a different thread! The problem is you have to
> marshal the interface pointer from the main thread to the calling thread.
> We build a generic solution, using an own IRPCChannel. But it figured out
> that we run into the DCOM timeout again, when we do the marshalling, which
> is not under our control! :-(
>
> 2. If you don't need solutions for Win9X and Win NT 4.0. Tou can use the
> ICancelObject to build a generic solution with a timeout smart pointer.
The
> problem here is, that you get into trouble when you use this solution in a
> MTA. It should work in a STA, but I didn't test it myself (in DCOM
> scenarios i no longer beliefe, what i didn't get to work myself). Here you
> can cancel a DCOM call, but under some conditions it takes up about 20
> seconds to get the call canceled by DCOM! :-(
>
> 3. You can use Async DCOM calls. But this mean that you usually have to
> redesign your application for doing all calls asynchronous. You also have
> to be aware that this only work on Win2k or newer versions. It's also not
> possible to call IDispatch or Dual interfaces asynchronous! :-(
>
> Hope this helps you not to run into the same nightmare of DCOM, as I did.
>
> best regards
>
> Klaus Neuberger
>
> ----------------------------------------------------------------
> Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
> contains important info. Save time, search the archives at
> http://discuss.microsoft.com/archives/index.html .
> To unsubscribe, mailto:DCOM-signoff-request
DISCUSS.MICROSOFT.COM
----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:DCOM-signoff-request
DISCUSS.MICROSOFT.COM
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]