The information in this article applies to:
SYMPTOMS
Creating a new ATL COM server application with AppWizard, which was generated as an EXE for the Server Type, does not call CComModule::Term() inside of tWinMain(). As a result, kernel objects that ATL has created, such as critical sections, will not be released until the process has been unloaded entirely by the operating system. Also, any class factories that were created and used may not be released until CoUninitialize() has been called. CAUSEThis problem is due to a bug in the Visual C++ 5.0 AppWizard. RESOLUTION
Add a call to the Term function.
to the following:
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been corrected in Visual C++ 6.0. MORE INFORMATIONSteps to Reproduce Behavior
REFERENCESCComModule::Term in MSDN Additional query words: kbDSupport
Keywords : kbwizard kbATL kbCOMt kbLocalSvr kbThreadSync kbVC kbVC500bug kbVC600fix kbGrpMFCATL |
Last Reviewed: November 24, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |