???? ID: 206076 - ????? ???????: 03 ?????? 2010 - ??????: 2.0 ????? C++ ??? apartments ?? ??? ???????? ?? ?????? ???? ?? ??? ???? ????
???:Microsoft Visual C++ 2008, Microsoft Visual C++ 2005, Microsoft Visual C++ .NET 2003, ?? Microsoft Visual C++ .NET 2002 Microsoft .NET Framework ?????? ??? ?? ??? ?? ???????? ???? ?? ????????? ??? Microsoft Windows ??? ???? ?? ??? ??????? ?? ???? ??? ?? ?? ??????? ???? ????????? ????? C++ ??? ?? ??? ???? ???? ??? ??????Marshal.exe ?? ?? ????? ?? ?? apartments ?? ??? ??? ???????? ?? marshaling ?? ??????? ?????? ?? ?????? ??? ???? ???????????? ????? Microsoft ??????? ?????? ?? ??????? ?? ??? ?????? ??:: ?? ??? ?? ??????? ???? ![]() Microsoft ?????? ??????? ?? ???? ??????? ???? ?? ???? ??? ???? ????? ?? ???, ????? ???? ?????? ?? ????? ?? ???? ?? Microsoft ???????? ??? ?????:: 119591
(http://support.microsoft.com/kb/119591/
)
?????? ?????? ?? Microsoft ?????? ??????? ???? ??????? ???? Microsoft ????? ?? ??? ?? ????? ?? ????? ?? ??? Microsoft ?? ?? ?????? ?? ?????? ???? ??????? ?????-??? ?????????? ?? ????? ???? ?? ????? ????? ?? ?? ??.. ????? ?? ???????-????????? ??????? ?? ???????? ?? ?? ????? ??? ??????? ??????? ?????????? ?? ????? ??? ??? ???? ???..??? Single-Threaded Apartment (STA), CoInitialize() ?? CoInitializeEx (??, COINIT_APARTMENTTHREADED) ?? ??? ??????? ???? ??? ????? ??? ??, ???? ?? ???? ??????? ?? ????????? ??? ?? COM ?? ????? ???? ?????? ?? ??? ???? ????? ?? ??? COM ?? ??????? ???? ?? ??? CoInitialize() ?? CoInitializeEx(). ??? ?? ???? COM ???????? ??? ?? STA ????? ??? ????? ?? ???, ???? ???? ??? ??????? ???? ?? ???? STA ????? ?? ??? ???? ?? ??? ???? ???? ?? ?? ??? ??? ???? ?? ??? STA ?????????? ?? serialized ?? ???? ?? ??? supposed ???, ??????? COM enforces ?? ?? ?????? ???? STA ???????? (????? ???? ??? ????? ??? ??) ??? ??? ???? ?? ??? ?? ????? ?? ??? ??? ??????? ???? ??? ????? STA ????? ?? ???, ???? ???? ?? ???? ???????? ?? ??? ??, ??? ?? ???? ?????? ?? 0x8001010E HRESULT ?? RPC_E_WRONG_THREAD (????????? marshaled ???? ??? ?? ?? ??? ???????? ?? ???? ????? ????? ?? ??? ??? ???? ??) ??????? ??????? ??????? ???? ?? ???? ???????? ?? ???? ???? ??, ??? COM serialization ???? ???? ????, ?? ??? ?????? ??????? ???? ??????, ?? ??????? ???? ??? ??? ?? ???? ?????? ??? ??, ?? ?? ??????? ?? part ?? ??????? ?? ??? ?? ?????? ??? ?? ??? ?? ??? ?? ???? ??????? STA ???????? ?? ?? ????? STA ????? ?? ?? ?? ?? ???? ?? ?? ???????? ?? ?????? ??? ???? ???????? ?? ???????? marshaling/unmarshaling ?? ?????? ?? ??????? ?? ?? ????????? ??? ?? ?? ??? ????????, COM makes ?? ?????? ?? ?? ????? ????? ?? ??? ????????? ???? STA ???????? ????? ??? ????? ?? ?????? ??? ??? ??????? Marshal/unmarshal ???? STA ?? ???? ???? ????? ?? ??? ??? ???????? ?? ??? ????? ???:
?????????? ??????? ?? ???, Microsoft ?????? ??? ??? ???? ????? ?? ??? ????? ???? ?????? ????? ????:: 172314
(http://support.microsoft.com/kb/172314/
)
RPC_E_WRONG_THREAD ?????? ?? ?????????? ???? ???? ???? ??:
???? ?????? ??????????????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??. ?????????? ?? ??????? ????????? ??????? ??:206076
(http://support.microsoft.com/kb/206076/en-us/
)
| ???? ?????? ???? ?????? ??????
????????? ?????? ??????? ???????? ??????
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email

????? ?? ???? ????

