|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Csaba Szelenyi (szelo
MINDMAKER.HU)Date: Thu Sep 20 2001 - 03:03:17 CDT
Hi,
Once I faced a similar situation. I found the error using the re-implementation
of the functions (using CreateStreamOnHGlobal, CoMarshalInterface and
CoUnmarshalInterface). This way I retrieved more information. (Just don't forget
to seek the stream to the start when unmarshaling - I did it. :-()
HTH,
Csaba
> -----Original Message-----
> From: Roche_John1
EMC.COM [mailto:Roche_John1
EMC.COM]
> Sent: den 19 september 2001 11:52
> To: DCOM
DISCUSS.MICROSOFT.COM
> Subject: Marshal related error.
>
>
> Hi,
>
> I had a look in the archives and couldn't see anything related to my problem
> so here goes ....
> I am trying to marshal an interface pointer between threads using the
> CoMarshalInterThreadInterfaceInStream and CoGetInterfaceAndReleaseStream
> helper functions.
>
> The CoMarshalInterThreadInterfaceInStream call succeeds, as does the
> CoMarshalInterThreadInterfaceInStream call . However when I try to make a
> call on my freshly marshalled interface (a callback interface) it fails with
> "An internal error occurred"
> This error is not returned from the call back function, it doesn't get that
> far.
>
> Anyone have any suggestions?
>
> Thanks.
>
> ----------------------------------------------------------------
> 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 ]