FIX: RCDLL.DLL GPFs with Semicolon in #define in .RC File

ID: Q114987

1.00 1.50 WINDOWS kbtool kbfixlist kbbuglist

The information in this article applies to:

SYMPTOMS

A resource (.RC) file with a #define that contains a semicolon (or

#includes a header file with a #define that contains a semicolon)
causes a general protection fault (GPF) in RCDLL.DLL when it is opened in App Studio. First, the following message box is displayed:

  ---------------------------------------------------------------------
 |                            APP STUDIO                                |
 |                                                                      |
 | An error has occurred in your application. If you choose Ignore, you |
 |   should save your work in a new file. If you choose Close, your     |
 |                   application will terminate.                        |
  ---------------------------------------------------------------------

Choosing Close causes the following message box to be displayed:

  ---------------------------------------------------------------------
 |                        Application Error                            |
 |                                                                     |
 |         APSTUDIO caused a General Protection Fault in               |
 |                  module RCDLL.DLL at 0001:3016                      |
  ---------------------------------------------------------------------

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem was corrected in Visual C++ version 2.0.

MORE INFORMATION

One way to reproduce this problem is to use the following steps:

1. Start the Visual Workbench.

2. Choose Open from the Project menu.

3. Open "c:\msvc\mfc\samples\scribble\step4\SCRIBBLE.MAK."

4. Choose Open from the File menu.

5. Open SCRIBBLE.RC.

6. After the line "#include "resource.h", add the following:

      #define GPF_TEST "xxx;yyy"

7. Select App Studio from the Tools menu.

Additional reference words: 1.00 1.50 AppStudio KBCategory: kbtool kbfixlist kbbuglist KBSubcategory: AppStudioIss

Keywords          : kb16bitonly kbResourceEd kbVC kbVC100bug kbVC150bug kbVC200fix kbGrpDSTools kbbuglist kbfixlist
Version           : 1.00 1.50
Platform          : WINDOWS
Issue type        : kbbug
Solution Type     : kbfix

Last Reviewed: October 2, 1998