Board index » delphi » threads in same apartment

threads in same apartment

Hi,

    Is there any way to create two or more threads in the same apartment in
order avoid marshalling of interfaces? If so, how?

Thanks in advance.

 

Re:threads in same apartment


<<Jq:
Is there any way to create two or more threads in the same
apartment

Quote

Have you seen Binh's tutorial on multithreading in COM?
http://www.techvanguards.com/com/concepts/multithreading.as
p

--
Deborah Pate (TeamB) http://delphi-jedi.org

  Use Borland servers; TeamB don't see posts via ISPs
  http://www.borland.com/newsgroups/genl_faqs.html

Re:threads in same apartment


This only works in the MTA. In the MTA, just create threads normally and
have each thread call CoInitializeEx (, COINIT_MULTITHREADED).

--
have fun
Binh Ly
http://www.techvanguards.com

Quote
"jq" <jpques...@navegalia.com> wrote in message news:3b77ad89_2@dnews...
> Hi,

>     Is there any way to create two or more threads in the same apartment
in
> order avoid marshalling of interfaces? If so, how?

> Thanks in advance.

Other Threads