FIX: Error "Microsoft JScript error" After Copying Sample

Last reviewed: December 18, 1997
Article ID: Q168265
The information in this article applies to:
  • Microsoft Visual Studio 97
  • Microsoft Visual C++, 32-bit Editions, version 5.0
  • Microsoft Visual J++, version 1.1
  • Microsoft Visual InterDev, version 1.0

SYMPTOMS

When you try to access a sample, you get an error message containing "Microsoft JScript runtime error". This occurs after you have already made one copy of some other sample.

CAUSE

When the Developer Studio is installed to a directory with a path name containing high-ASCII characters, such as those that are used in many non-English character sets, it has problems copying samples.

RESOLUTION

To actually fix the bug, get the Service Pack.

To work around the problem: after copying a sample, exit Developer Studio and restart it.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been corrected in Visual Studio 97, German and Japanese localized versions, and in Visual Studio 97 Service Pack 1.

For additional information about the Visual Studio 97 Service Pack 1, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q170365
   TITLE     : INFO: Visual Studio 97 Service Packs - What, Where, and Why

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a directory with high-ASCII characters (to generate high-ASCII characters from a standard keyboard, hold down the Alt key and type a number between 128 and 255 on the numeric key pad).

  2. Install Visual C++ to the directory with high-ASCII characters.

  3. In Developer Studio, from Help/Search (index tab) type POLYGON, select "POLYGON sample (ATL)", and then the topic "POLYGON: The ATL Tutorial."

  4. Click the link "Click to open or copy the POLYGON project files" and Select to copy all.

  5. Choose to copy to any directory.

  6. Select another sample to download. For example, SUBEDIT (the next sample in the table of contents).

  7. When you attempt to "Click to open or copy the SUBEDIT project files", the "Microsoft JScript runtime error" appears.

  8. After you restart the Developer Studio IDE, it works correctly.

NOTE: POLYGON is just a convenient choice, any sample would do.

NOTE: If this was the first sample copied since installing Visual C++ (or one of the other products using Developer Studio), the default directory name to copy to will contain incorrect character translations for the high- ASCII characters in the path. This is another symptom of the same bug.

REFERENCES

For additional information, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q168264
   TITLE     : FIX: Copying Samples to a Dir with High ASCII Stops File I/O
Keywords          : VS97FixlistSP2 VS97FixlistSP1 VSInfoView VS97FixlistSP3
Technology        : kbatl
Version           : 5.0 97
Platform          : NT WINDOWS
Issue type        : kbbug
Solution Type     : kbfix kbservicepack


================================================================================


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.

Last reviewed: December 18, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.