BUG: App Studio Generates GPF with Long Strings Defined

Last reviewed: July 22, 1997
Article ID: Q116488
1.00 1.50 WINDOWS kbtool 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

Attempting to load a resource compiler file into App Studio that contains a #define statement for a string that is longer than 255 bytes causes a general protection fault (GPF) in RCDLL.DLL.

RESOLUTION

The only workaround is to use #define statement strings of 255 characters or less in the resource(.RC) file.

STATUS

Microsoft has confirmed this to be a bug with App Studio for Windows, versions 1.0 and 1.5, supplied with Visual C++ for Windows, versions 1.0 and 1.5. We are researching the problem and will post new information here in the Microsoft Knowledge Base as soon as it becomes available.

This is not a problem with App Studio, version 1.1, supplied with Visual C++ 32-bit Edition, version 1.0.

Sample Code

; PROBLEM.RC

#define VERYLONGSTRING "This is a very long string that will need"\
                       "to be continued on the next line. It will"\
                       "probably take quite a few lines of text to"\
                       "cause a general protection fault, but it"\
                       "will usually happen on lines greater than"\
                       "255 characters. This may be enough to make"\
                       "App Studio GPF; in fact, I'm pretty"\
                       "sure this is enough, so I probably should"\
                       "stop on this line here."


Additional reference words: 1.00 1.50 character
KBCategory: kbtool kbbuglist
KBSubcategory: AppStudioIss
Keywords : kb16bitonly


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