Microsoft KB Archive/818442

= FIX: You Receive a Runtime Error When You Use Help in the Scribble Application =

Article ID: 818442

Article Last Modified on 8/21/2003

-

APPLIES TO


 * Microsoft Visual Studio .NET 2002 Enterprise Architect
 * Microsoft Visual Studio .NET 2002 Enterprise Developer
 * Microsoft Visual Studio .NET 2002 Professional Edition
 * Microsoft Visual Studio .NET 2002 Academic Edition
 * Microsoft Visual J# .NET 2003 Standard Edition

-



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  \Samples\Visual J# .NET\General\Scribble\help directory. The help file, Scribble.chm, is also copied to this directory. Because the path contains the &quot;sharp&quot; character (#), you may receive the error message that is described in the &quot;Symptoms&quot; 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.



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:\
 * 1) Start Visual Studio .NET.
 * 2) On the File menu, click Open, and then click Project.
 * 3) Type C:\Samples\Visual J# .NET\General\Scribble\Scribble.sln as the File name, and then click Open.
 * 4) On the Build menu, click Build Solution.
 * 5) On the Debug menu, click Start. You might notice that the Scribble application has started.
 * 6) On the Help menu, click Help Topics.

You receive the error message that is mentioned in the &quot;Symptoms&quot; section.

