BUG: InfoViewer Becomes Inoperable After Window.Close Is Called (178039)



The information in this article applies to:

  • Microsoft Visual InterDev 1.0

This article was previously published under Q178039

SYMPTOMS

InfoViewer ceases to function after browsing a page with client-side script that contains the Window.Close command. Trying to browse other pages with InfoViewer causes a blank error message to appear or causes the following application error:
The instruction at "0x00000000" referenced memory at "0x00000000". The memory could not be "read."

CAUSE

InfoViewer is not capable of closing itself from within the Visual Studio shell. The conditions that cause this behavior are:
  • Client Side Script using the "Window.Close" command. -and-

  • Browsing within the InfoViewer.

RESOLUTION

Use Internet Explorer to view the page that calls the "window.close" method.

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.

MORE INFORMATION

Steps to Reproduce Behavior:

  1. Add a new .htm file to an existing Visual InterDev project. Name the file "test.htm."
  2. Copy the following code and paste it into the file created in the previous step:
          <INPUT TYPE="button" NAME="Button1" VALUE="Close Window"
          onClick="window.close()">
    					
  3. Save the file.
  4. Preview the file above in the InfoViewer. If you don't have "InfoViewer" set as your default browser within Visual InterDev, right-click the file in the "FileView" pane and then, from the context menu, select "Browse With" and then "InfoViewer."

Modification Type:MinorLast Reviewed:6/14/2005
Keywords:kbbug KB178039