Microsoft KB Archive/191119

= FIX: VB Classes Can Cause IIS to Have Access Violations =

Article ID: 191119

Article Last Modified on 8/7/2007

-

APPLIES TO


 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q191119



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. However, not setting Retain in Memory can cause more serious issues.

For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

264957 BUG: VB DLL Has Memory Leaks and Crashes in COM+ if 'Retain In Memory' Not Set



RESOLUTION
To resolve this problem, install the latest Visual Studio 6.0 service pack.For additional information about Visual Studio service packs, click the following article numbers to view the articles in the Microsoft Knowledge Base:

194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why

194295 HOWTO: Tell That a Visual Studio Service Pack Is Installed

To download the latest Visual Studio service pack, visit the following Microsoft Web site:

http://msdn2.microsoft.com/en-us/vstudio/Aa718353.aspx



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

This problem was first corrected in Visual Studio 6.0 Service Pack 3.

