FIX: App Studio Generates GPF with Long Strings Defined

ID: Q116488

1.00 1.50 WINDOWS kbtool kbbuglist

The information in this article applies to:

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. This problem was corrected in Microsoft Visual C++, version 6.0.

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 kbVC600fix kbGrpDSTools 
Issue type        : kbbug
Solution Type     : kbfix

Last Reviewed: September 30, 1998