Microsoft KB Archive/116374

= FIX: >251 Character Lines in Workbench Cause Random Behavior =

Article ID: 116374

Article Last Modified on 8/16/2005

-

APPLIES TO

 Microsoft Visual Workbench for Windows, when used with:  Microsoft Visual C++ 1.0 Professional Edition

 Microsoft Visual C++ 1.5 Professional Edition

 Microsoft Visual C++ 1.51

 Microsoft Visual C++ 2.0 Professional Edition</li></ul>

 Microsoft Visual C++ 2.1</li></ul> </li></ul>

-

<div class="notice_section">

This article was previously published under Q116374

<div class="symptoms_section">

SYMPTOMS
The Microsoft Visual Workbench does not allow a user to type more than 251 characters on a single line. Depending on the version, the Visual Workbench will either truncate the line past the 251 character limit or ask if the offending line(s) should be wrapped onto the next line. This behavior can cause problems in resource files (.RC files) or other project files in which the addition of a carriage return is undesirable.

In Visual C++ for Windows versions 1.0, 1.5 and 1.51, it is possible to load a file with more than 251 characters on a single line. In this case unexpected results can occur, including the following:


 * A search-and-replace on the >251-character line may result in a general protection fault. -or-


 * Editing the >251-character line may change the color of the background or text in the edit window.

<div class="resolution_section">

RESOLUTION
To work around the problem, you must shorten line length to 251 characters or less.

<div class="status_section">

STATUS
Microsoft has confirmed this to be a bug in the products listed at the beginning of this article. This problem was fixed in Microsoft Visual C++, 32-bit Edition, version 4.0.

Additional query words: 1.00 1.50 1.51 2.00 2.10

Keywords: kbbug kbfix kbide KB116374

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.