DOCUMENT:Q191119 07-AUG-1998 [vbwin] TITLE :BUG: VB Classes Can Cause IIS to have Access Violations PRODUCT :Microsoft Visual Basic for Windows PROD/VER:WINDOWS:6.0 OPER/SYS:WINDOWS KEYWORDS:kbVBp600bug kbInternet kbWebClasses ====================================================================== --------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual Basic Professional and Enterprise Editions for Windows, version 6.0 --------------------------------------------------------------------- SYMPTOMS ======== Internet Information Server (IIS) could have an access violation when shutting down. CAUSE ===== The IIS environment at termination does not guarantee the order of DLL unloads. As a result the Visual Basic runtime is sometimes unloaded before it can be cleanly shut down. This results in the access violation. This can happen sporadically but only if you have the Visual Basic project option Retain in Memory set On. RESOLUTION ========== Turn OFF the project option "Retain in Memory." NOTE: Even though turning OFF the project option "Retain in Memory" will stop the IIS Access Violations, you do not want to do this. To get maximum performance from your WebClasses, you need to have the project option "Retain in Memory" turned ON. STATUS ====== Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available. REFERENCES ========== Please see the following Microsoft Knowledge Base article for more information on WebClasses: ARTICLE-ID: Q189539 TITLE : WebClass Section of VB6 Readme.htm Additional query words: ====================================================================== Keywords : kbVBp600bug kbInternet kbWebClasses Version : WINDOWS:6.0 Platform : WINDOWS Issue type : kbbug ============================================================================= 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. Copyright Microsoft Corporation 1998.