PRB: GP Fault When Using 16-Bit Automation DLLs

Last reviewed: June 6, 1995
Article ID: Q131047
The information in this article applies to:
  • Microsoft OLE Libraries for Windows and Win32s, version 2.03

SYMPTOMS

After dynamically loading and then unloading one of the 16-bit OLE Automation DLLs (OLE2DISP.DLL, LOE2NLS.DLL, or TYPELIB.DLL), you experience a general protection (GP) fault in COMPOBJ.DLL.

CAUSE

If any of the 16-bit OLE Automation DLLs (OLE2DISP.DLL, LOE2NLS.DLL, or TYPELIB.DLL) is dynamically loaded, it should not be unloaded until after OleUninitialize has been called. Otherwise a general protection (GP) fault can occur in COMPOBJ.DLL.

RESOLUTION

If you dynamically load any of the 16-bit OLE Automation DLLs (OLE2DISP.DLL, LOE2NLS.DLL, or TYPELIB.DLL), don't unload it until OleUninitialize has been called.

STATUS

This requirement is by design.


Additional reference words: GPF
KBCategory: kbprg kbole kbprb
KBSubcategory: LeTwoAto


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 6, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.