Microsoft KB Archive/243599

= FIX: You receive a "The memory could not be 'read'" error message and Visual C++ debugger fails on some long names =

Article ID: 243599

Article Last Modified on 8/7/2007

-

APPLIES TO


 * The Integrated Debugger, when used with:
 * Microsoft Visual C++ 6.0 Service Pack 5

-



This article was previously published under Q243599



SYMPTOMS
When stopping at a breakpoint or stepping over a line in the Visual C++ debugger, you may receive an error like one of the following:

The instruction at "0x52512627" referenced memory at "0x00000000". The memory could not be "read".

The instruction at "0x5251263e" referenced memory at "0x00000003". The memory could not be "read".



CAUSE
An internal buffer overflow occurs on some long undecorated symbol names of functions or variables. The name won't necessarily appear to be long in the C++ source code.



RESOLUTION
A supported fix for Visual C++ 6.0 that corrects this problem is now available from Microsoft, but it has not been fully regression tested and should be applied only to systems experiencing this specific problem.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information on support costs, visit the following address on the World Wide Web:

http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMS

The English version of this fix should have the following file attributes or later:

Note If this product was already installed on your computer when you purchased it from the Original Equipment Manufacturer (OEM) and you need this fix, please call the Pay Per Incident number listed on the above Web site. If you contact Microsoft to obtain this fix, a fee may be charged. This fee is refundable if it is determined that you only require the fix you requested. However, this fee is nonrefundable if you request additional technical support, if your no-charge technical support period has expired, or if you are not eligible for standard no-charge technical support.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section. This bug was corrected in the latest service pack for Visual Studio 6.0.

For more information about Visual Studio service packs, click the following article numbers to view the articles in the Microsoft Knowledge Base:

194022 INFO: Visual Studio 6.0 Service packs, What, Where, Why

194295 HOWTO: Tell That a Visual Studio service Pack Is Installed

To download the latest Visual Studio service pack, visit the following Microsoft Web site:

http://msdn2.microsoft.com/en-us/vstudio/Aa718353.aspx

Additional query words: sp4

Keywords: kbqfe kbhotfixserver kbbug kbdebug kbfix kbvc600fix kbvs600sp4fix kbvs600sp5fix KB243599

-

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

© Microsoft Corporation. All rights reserved.