TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Administrator
Tech Writer
2.2k
1.5m
Problem with C# multithreading and COM interop
Mar 26 2003 7:50 AM
I have a third party COM object and 'am accessing it through .NET C#. This is not a problem until I attempt to access the COM object from multiple threads. What is happening is that the COM object (MTA) seems to only have one instance. I know this because the COM object error logging identifies it's thread id which is always the same no matter how many threads I instantiate the COM object from. The thread attributes are set to MTA before I call 'new' on the COM object, and I'm creating a new object in each thread. Further, I have managed to get the system working properly in Vicual C++ with multiple threads using exactly the same COM dll. Help! Regards, James
Reply
Answers (
0
)
Accessing an XML Web Service from Office 97
Vc++ C# interoperability problem