|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Venugopal, Deepa (Deepa.Venugopal
WONDERWARE.COM)Date: Tue Oct 02 2001 - 20:26:41 CDT
If the proxy and stub were not in sync with the server DLL then i am
guessing the calls to cocreateinstance should never succed. In the
particular case below...it succeds sometimes! Am i missing something here?
-----Original Message-----
From: Steve Johnson [mailto:sjohnson
3TSYSTEMS.COM]
Sent: Tuesday, October 02, 2001 6:23 PM
To: DCOM
DISCUSS.MICROSOFT.COM
Subject: Re: Exception in CoCreateInstance
Ensure that your proxy/stub is in sync with your server dll.
Steve Johnson
3t Systems
mailto:sjohnson
3tsystems.com
(303)858-8800 x265
> I've a component S which is an ATL based out-of-proc server i.e
> Server.exe.
>
> i've a client C living in process Client.exe, which calls a
> method on object
> S named pSomeInterfacetoS->GetComponentA(**ppSomeInterfacetoComponentA).
>
> The implementation of GetComponentA is shown below
>
> CSObj::GetComponentA(**ppSomeInterfaceteComponentA)
> {
> // create a loca server version of the object A.
> :: CoCreateInstance(...,CLSCTX_LOCAL_SERVER, ...);
> }
>
> Compoent A is a ATL based DLL server which is also registered for
> surrogate
> based activation (say using OLE View).
>
> The problem is the called to cocreateinstance of Component A in a local
> server throws an exception (accessviolation) sometimes, "ONLY SOMETIMES".
>
> Pl note that the exception is thrown only sometimes.
>
> i'm running W2000, SP2, VC++ 6.0, SP5, Platform SDK Nov2000.
>
> i downloaded the symbol files for W2000 SP2 and managed to get the call
> stack shown below at the point where the exception occurs.
----------------------------------------------------------------
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 ]