|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Steve Swartz (stevesw
MICROSOFT.COM)Date: Wed Feb 13 2002 - 11:58:43 CST
What's happening is that the return value passed from the server back to
your client process has gummed up the works for RPC. The next call you
make runs into the gum and clears it up. How's that for a high-tech
answer ;) This would be a bug if it occurred in Windows 2000 and/or
Windows XP, but it seems to be fixed in the more recent products.
Your thread isn't taking up any resources while it's hanging on a call
from your client process into your MTX.EXE process. So there's no real
gain in killing it at that point. Someone else suggested "killing" the
process by setting a flag that will cause it to exit right after the
long-running call returns. That's a much cleaner solution. If you're
concerned about components hanging in MTX.Exe, fixing the problem there
(by aborting "hung" components) will be safer for you.
Unfortunately, async com isn't a solution for you even in later
operating systems, since you can't combine async com and COM+ services.
> > -----Original Message-----
> > From: Charles Gamble [mailto:Charles.Gamble
SINGULARITY.CO.UK]
> > Sent: 24 January 2002 15:11
> > To: DCOM
DISCUSS.MICROSOFT.COM
> > Subject: RPC Call failed after killing thread
> >
> >
> > Hi all,
> >
> > I have an EXE which is used to create threads which talk to MTS
> components.
> > My problem is this:
> > Sometimes I need to kill threads in the EXE which are in-call to an
MTS
> > component. (I only use one package, so there is only one MTX.EXE)
> > When the thread in MTX.EXE which was in-call then dies later on and
tries
> to
> > return to my EXE, the first call I then try to make to an MTS
component
> from
> > a new thread in my EXE fails with the error 800706be: The remote
> procedure
> > call failed.
> >
> > If I just try to make the call again, it works fine.
> > Why does this happen for the first call into the MTX.EXE from my
EXE?
> > Note it only happens after the thread which was previously in call
in
MTS
> > tries to return to the killed thread in my EXE.
> > I have tried calling MTS from another process but this problem only
occurs
> > in the EXE which I had previously killed the in-call thread.
> >
> > Thanks for this.
> > Charles.
> >
> > ----------------------------------------------------------------
> > 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
>
> ----------------------------------------------------------------
> 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
---------------------------------------------------------------- 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 ]