Re: ATL threading problem using client COM interface
- From: "Roman Ryl..." <ryltsov@xxxxxxxxx>
- Date: Sun, 24 Aug 2008 00:42:05 -0700 (PDT)
Hi,
So what you are saying is that in my COM server, when I want to pass a
client interface pointer from the main thread in my STA to my worker
thread, I need to use one of the techniques above ? Do any of the COM
smart pointers ( CComPtr, CComQIPtr, or _com_ptr_t ) provide an easy way
to marshall the underlying interface pointer from one thread on the
server to another ? Thanks !
CComPtr and CComQIPtr don't marshal, they are just wrapping the raw
interface pointers. Use mentioned above APIs or "GIT" template to pass
pointer between apartments marshaling it.
Roman
.
- References:
- Re: ATL threading problem using client COM interface
- From: Igor Tandetnik
- Re: ATL threading problem using client COM interface
- Prev by Date: Re: ATL threading problem using client COM interface
- Next by Date: Re: ATL threading problem using client COM interface
- Previous by thread: Re: ATL threading problem using client COM interface
- Index(es):
Relevant Pages
|