CreateObject Function Fails on Windows 2000 with Internet Explorer 5.01 (821556)



The information in this article applies to:

  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Professional
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Internet Explorer (Programming) 5.01

SYMPTOMS

When you call the CreateObject Visual Basic Scripting Edition (VBScript) function for the Shell.Explorer Component Object Model (COM) object in Microsoft Internet Explorer 5.01, Internet Explorer 5.01 may stop responding. The following code describes an example of this problem:
<HTML>
    <HEAD>
        <TITLE>Shell.Explorer Test</TITLE>
    </HEAD>
    <BODY>
        <script language="VBScript">
            Set x = CreateObject("Shell.Explorer") 
            Msgbox "CreateObject on Shell.Explorer has succeeded."
            Set x = nothing
            Set x = CreateObject("Shell.Explorer.1") 
            Msgbox "CreateObject on Shell.Explorer.1 has succeeded."
            Set x = nothing
            Set x = CreateObject("Shell.Explorer.2") 
            Msgbox "CreateObject on Shell.Explorer.2 has succeeded."
            Set x = nothing
        </script>
    </BODY>
</HTML>

CAUSE

This problem occurs because Internet Explorer 5.01 incorrectly handles the execution of the CreateObject request for the Shell.Explorer object.

RESOLUTION

This problem has been fixed in the August 2003 Internet Explorer Update. To receive this fix, download the latest Internet Explorer Security Update. For additional information about the August 2003 Internet Explorer Update, click the following article number to view the article in the Microsoft Knowledge Base:

822925 MS03-032: August 2003 Cumulative Patch for Internet Explorer

STATUS

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

Modification Type:MinorLast Reviewed:11/8/2004
Keywords:kbBug kbQFE kbshell kbScript kbWin2000preSP5fix kbWin2000SP5fix kbInetDev kbweb kbfix KB821556 kbAudDeveloper