OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Steve Johnson (sjohnson3TSYSTEMS.COM)
Date: Tue Oct 02 2001 - 20:23:15 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Ensure that your proxy/stub is in sync with your server dll.

    Steve Johnson
    3t Systems

    mailto:sjohnson3tsystems.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-requestDISCUSS.MICROSOFT.COM