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

Last reviewed: September 18, 1997
Article ID: Q114987
1.00 1.50 WINDOWS kbtool kbfixlist kbbuglist

The information in this article applies to:

  • The App Studio, included with: Microsoft Visual C++ for Windows, versions 1.0 and 1.5

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 : AppStudioIss kb16bitonly kbbuglist kbfixlist kbtool
Version : 1.00 1.50
Platform : WINDOWS
Solution Type : kbfix


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: September 18, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.