[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ms-dcom
Subject:    Re: Hang in CoUnmarshalInterface
From:       Joakim Karlsson TACMa <Joakim.Karlsson () TAC ! COM>
Date:       2003-11-06 7:19:05
[Download RAW message or body]

Do you explicitly marshal/unmarshal your interface by calling CoMI/CoUMI?
If so - why?

It shouldn't be more complicated than defining the server interface as
follows:

interface IMyItf
{
 HRESULT CallMe([in]IUnknown* callMe, [out, retval] long* cookie);
}

and call that interface from your client, letting the infrastructure do the
rest for you.

Regards,
Joakim



-----Original Message-----
From: Sergei Menchenin [mailto:SergeiM@DIGITALPERSONA.COM]
Sent: den 5 november 2003 22:05
To: DCOM@DISCUSS.MICROSOFT.COM
Subject: Hang in CoUnmarshalInterface


We have Windows 98 workstations making calls to the DCOM server running on
Windows 2000. Workstations send IUnknown* pointers to the server for the
callbacks.

Sometimes, when these IUnknown* pointers get unmarshalled, the
CoUnmarshalInterface hangs for about 15 minutes.

At that time no other CoUnmarshalInterface can be done on the server (in
other words, ALL workstations trying to connect to the server at that time
wait for this hang to time out).

It seems it happens in the following situations:

1.      When a workstation sends pointer to the server after long period of
inactivity (inactivity of the workstation)
2.      When workstations send pointers to the server on the network that is
very unreliable. In this case it happens once in while but we could not
reliably reproduce it.

When multiple workstations try to communicate in this way with the server,
it hangs almost all the time.

Any help will be greatly appreciated.
Thanks,
Sergei

----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.html
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.html
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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic