When using a STA COM on multi-threaded environment, we maybe got COM errors.
Because a STA COM Interface could not be shared throuth different threads.
If you want share a COM interface among threads, you shoud marshal a COM interface.
And If Application has a UI, we should message pump, so that It could be blocked while marshalling.
Reference this Microsoft KB article.
http://support.microsoft.com/kb/206076
Tuesday, February 17, 2009
How to marshal interfaces across apartments in Visual C++
작성자: scor7910 시간 12:20 PM
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment