Microsoft KB Archive/223090

= FIX: UserControl on Active Desktop Causes AV Shutdown in VB DLL =

Article ID: 223090

Article Last Modified on 5/12/2003

-

APPLIES TO


 * Microsoft Visual Basic 5.0 Learning Edition, when used with:
 * Microsoft Windows NT 4.0
 * Microsoft Visual Basic 6.0 Learning Edition, when used with:
 * Microsoft Windows NT 4.0
 * Microsoft Visual Basic 5.0 Professional Edition, when used with:
 * Microsoft Windows NT 4.0
 * Microsoft Visual Basic 6.0 Professional Edition, when used with:
 * Microsoft Windows NT 4.0
 * Microsoft Visual Basic 5.0 Enterprise Edition, when used with:
 * Microsoft Windows NT 4.0
 * Microsoft Visual Basic 6.0 Enterprise Edition, when used with:
 * Microsoft Windows NT 4.0

-



This article was previously published under Q223090



SYMPTOMS
If there is a user control on Active Desktop, and the shell is shut down, an access violation occurs in Internet Explorer.



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

This bug was corrected in Visual Studio 6.0 Service Pack 3. For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:

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

194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed



Steps to Reproduce Behavior

 * 1) Start a new ActiveX Control project in Visual Basic. Leave the default name Project1. UserControl1 is created by default.
 * 2) Compile the project to generate Project1.ocx, and save the project.
 * 3) Use the Package and Deployment Wizard (PDW) to create an Internet download package.
 * 4) If not already installed, add the Windows Desktop Update component. From the Control Panel, click Add/Remove Programs, and select Microsoft Internet Explorer 4.0. Click Add/Remove and then select the appropriate option.
 * 5) Right-click the desktop and select Properties from the shortcut menu.
 * 6) Select the Web tab from the Display Properties dialog box.
 * 7) Make sure View my Active Desktop as a Web page is selected, and click New.
 * 8) Click No in the next dialog box, and then browse to the .htm page hosting our control (Project1.htm).
 * 9) Select Project1.htm and click OK. You should see that the UserControl is now part of the desktop.
 * 10) Close the shell either by logging off or selecting Shut Down from the Start button.

You will see either an Access Violation in the Explorer process at a location where the Msvbvm60.dll was loaded or a dialog box stating the Explorer is not responding. If the user turns off the Active Desktop before shutting down the shell, then this problem will not occur.

Keywords: kbbug kbfix kbactivedesktop kbctrl kbvs600sp3fix KB223090

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.