|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Custom Marshalling and .NET problem
From: Vos, Gert-Jan de (gjdvos
NL.FEICO.COM)
Date: Wed Dec 08 2004 - 11:06:16 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
I ran into a problem with a custom marshalled COM object in a .NET
client.
The problem only shows up with .NET clients, not with MFC or JScript
clients
of this COM object.
The COM object holds itself references to other custom marshalled COM
objects.
Now if the top level COM object is marshalled, in its MarshalInterface()
it
first puts its private marshal information in the stream object, then
calls
CoMarshalInterface() for its internal object references.
At the client side in UnmarshalInterface(), the object uses the private
information to initialize the proxy object, then forwards to
CoUnmarshallInterface() to unmarshal the internal objects.
All this runs fine when marshalled to MFC or JScript clients. When I now
want
the same object instance marshalled to a .NET client, the first
CoUnmarshalInterface() call for the nested objects returns
REGDB_E_CLASSNOTREG.
What could be different for the .NET client to cause this error?
Regards,
Gert-Jan de Vos
----------------------------------------------------------------
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
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]