FIX: You Receive a Runtime Error When You Use Help in the Scribble Application (818442)



The information in this article applies to:

  • Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2002), Professional Edition
  • Microsoft Visual Studio .NET (2002), Academic Edition
  • Microsoft Visual J# .NET (2002)

SYMPTOMS

Microsoft provides samples of Visual J# .NET applications together with the Visual J# .NET documentation. On a Windows XP-based computer, you may experience some symptoms when you use the Help feature in the Scribble application.

In Visual J# .NET 2002, if you start a Scribble application from the General Samples category, and then click Help Topics on the Help menu, you may receive the following error message:
Scribble.exe has encountered a problem and needs to close. We are sorry for the inconvenience.
When you double-click the Help file, you receive the following error message:
Microsoft® HTML Help Executable has encountered a problem and needs to close. We are sorry for the inconvenience.
Note You do not receive these error messages on a Windows 2000-based computer.

CAUSE

When you build the application, all the files that are required are copied to the Sample Application Directory\Samples\Visual J# .NET\General\Scribble\help directory. The help file, Scribble.chm, is also copied to this directory. Because the path contains the "sharp" character (#), you may receive the error message that is described in the "Symptoms" section.

WORKAROUND

To work around this problem, rename the Visual J# .NET directory as Visual JSharp .NET.

Note Changing the directory name may cause samples that are built under the Visual J# .NET directory to not work correctly.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This bug was corrected in Microsoft Visual Studio .NET 2003.

MORE INFORMATION

Steps to Reproduce the Behavior

This article assumes that both Visual J# .NET and the Microsoft Visual Studio .NET documentation are installed on your computer.
  1. Open the Microsoft Visual Studio .NET 2002 documentation.
  2. Paste the following URL in the URL box: ms-help://MS.VSCC/MS.VJSharp/dv_vjsample/html/vjsamscribblesamplemdidrawingapplication.htm
  3. After the Scribble application sample appears, click Copy All Files.
  4. In the Browse For Folder dialog box, type C:\ in Folder box, and then click OK.

    Note: A Samples folder is created in C:\
  5. Start Visual Studio .NET.
  6. On the File menu, click Open, and then click Project.
  7. Type C:\Samples\Visual J# .NET\General\Scribble\Scribble.sln as the File name, and then click Open.
  8. On the Build menu, click Build Solution.
  9. On the Debug menu, click Start. You might notice that the Scribble application has started.
  10. On the Help menu, click Help Topics.

    You receive the error message that is mentioned in the "Symptoms" section.

REFERENCES

For more information about Visual J# samples, visit the following MSDN Web site:

Modification Type:MajorLast Reviewed:8/21/2003
Keywords:kbhelp kberrmsg kbJava kbSample kbfix KB818442 kbAudDeveloper