I have a VB.Net application in VS2005 that communicates to a ATL written in
VC++ loaded as a project resource. The communications with the ATL DLL
library work well in the VB primary thread. But if I try and communicate in
the same way with the ATL in a secondary thread (System.Threading.Thread),
then the communications speed with the ATL slows down by a factor of about
100X. I am assuming that tis is beacuse of some marshalling or other overhead
that is done differently in the secodary thread. How can I communicate with
the ATL in a secodary thread and still get the same performance as the VB
primary thread? Is there a better way to get multithreaded access to the ATL
without a performance hit? PLEASE HELP.