The information in this article applies to:
SYMPTOMSIn Windows 95, calling FreeLibrary() on the resource DLLs in the ExitInstance() function of the COleControl-derived class causes an application error. CAUSEThis is a bug in Windows 95. When FreeLibrary() is called on resource DLLs, Windows 95 is running through the chain of DLLs in that process and looking for other DLLs that have a zero reference count. This causes other DLLs to be unloaded too soon. RESOLUTIONMove the FreeLibrary() calls to the destructor function of the COleControl-derived class. STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. MORE INFORMATIONSteps to Reproduce Behavior
RESULTS: You will get an application error dialog box and the "control is registered successfully" dialog box. REFERENCES(c) Microsoft Corporation 1999, All Rights Reserved. Contributions by Yeong-Kah Tam, Microsoft Corporation. Additional query words: ocx
Keywords : kbole kbDLL kbMFC kbVC kbVC500bug kbVC600bug kbWinOS95bug |
Last Reviewed: March 27, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |