FIX: ?? ????? ???? EXE ATL ????? CComAutoThreadModule ??? ???????

?????? ????????? ?????? ?????????
???? ???????: 202128 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

???????

???? ????? ???? EXE ATL ???????? ??? <>CComAutoThreadModule ??? ????? ?? ??????.

?????

???? CComAutoThreadModule<>::Init() ???? ?? WinMain() ???? ???? ????? (?????? ?????? ??????? ????????? 4). destructor CComAutoThreadModule ???????? ???? ????? ?? ????? ?????? ??????? ??? ??? ????? ???????. ???? ??? ?? ???? ??? ????? WM_QUIT ??? ?? ?????? ??????? ?? ???? ?????? ??????? ??????? WaitForSingleObject() ??? ???? ???????. ??? ????? ?????? ??????? ???? ?????? ??????? ?? ?????? ?? ?? ???? ???? ??????? GetMessage() ? ???? ?? ??? ????? ????? ?????? ???????. ???? ??? PostThreadMessage() ???. ??? ?? ?? ????? ?????? ??????? ?? ?????? ?????? WaitForSingleObject() ???? ?? ????? ?????? ??????? ?????.

????

?? ??? Altcom.h ???? ???? vc98\atl\include destructor ?? ???? CComAutoThreadModule ??????? ???????? ???????? ???????:
   ::PostThreadMessage(m_pApartments[i].m_dwThreadID, WM_QUIT, 0, 0);
				

?? ??? ???????? ????????:
   while (::PostThreadMessage(m_pApartments[i].m_dwThreadID, WM_QUIT,
      0, 0) == 0) ::Sleep(100);
				

?????

???? Microsoft ?? ???? ??? ?? ?????? Microsoft ??????? ?? ????? ??? ??????? ???.

?? ????? ??? ??????? ?? Microsoft Visual C++ .NET.

??????? ????

  1. ??????? Appwizard ?????? ATL EXE.
  2. ????? ?? ??? ?? ???? ATL ?? ???????.
  3. ?? Stdafx.h ? ?????? CComModuleCComAutoThreadModule<ccomsimplethreadallocator>.
  4. ????? ???????.

    ??????: ???? ???? ?? ????? ?????? ?? ??? ??????? ??? ?????? ?????? ??????? ????? ??????.
  5. ?? ??????? ??????? ??????? ??? ??? ????? ??????? ????? "/ RegServer" ?? ???? ?????? ?????? ??????.
  6. ????? ?????? ?? ??????.

    ??????: ??? ???? ?? ????? ???? ??? ??? ??? ??????. ??? ????? ???????? ?? ?? ????? ????? ??????? ??? ??? ???????.

???????

???? ???????: 202128 - ????? ??? ??????: 17/????/1424 - ??????: 2.0
????? ???
  • Microsoft ActiveX Template Library 3.0, ????? ?????? ??:
    • Microsoft Visual C++ 6.0 Enterprise Edition
    • Microsoft Visual C++ 6.0 Professional Edition
    • Microsoft Visual C++, 32-bit Learning Edition 6.0
????? ??????: 
kbmt kbbug kbfix kblocalsvr kbthread KB202128 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????202128

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

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com