Article ID: 225099 - Last Review: August 7, 2007 - Revision: 4.1 FIX: Access violation when you use the Realloc function in a small memory block in Visual C++ 6.0This article was previously published under Q225099 On This PageSYMPTOMS
Under certain circumstances, using the Realloc function in a small memory block (if the total small-block memory pool exceeds 16 MB) causes access violation with the Visual C++ 6.0 small-block allocator.
CAUSE
Memory access violation occurs inside the __sbh_free_block() function due to a bug in the implementation of the _realloc_base() function.
RESOLUTION
Here are three ways to work around this problem:
A supported fix for the Visual C++ 6.0 static libraries 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, please go to the following address on the World Wide Web: http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMS (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: Collapse this table
in the following self-extracting file: Collapse this table
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This bug was corrected in the next service pack for Visual Studio 6.0. For additional information about Visual Studio service packs, click the following article numbers to view the articles in the Microsoft Knowledge Base: 194022
(http://support.microsoft.com/kb/194022/EN-US/
)
INFO: Visual Studio 6.0 Service Packs, What, Where, Why To download the latest Visual Studio service pack, visit the following Microsoft Web site:194295 (http://support.microsoft.com/kb/194295/EN-US/ ) HOWTO: Tell That a Visual Studio Service Pack Is Installed http://msdn2.microsoft.com/en-us/vstudio/Aa718353.aspx
(http://msdn2.microsoft.com/en-us/vstudio/Aa718353.aspx)
MORE INFORMATIONSteps to Reproduce BehaviorBuild the following .cpp file as a console application and run it under the debugger. You receive an access violation error.REFERENCES
For additional information, please click the article numbers below
to view the articles in the Microsoft Knowledge Base:
195008
(http://support.microsoft.com/kb/195008/
)
Heap Manager change in Service Pack 4 and Windows 2000
234622
(http://support.microsoft.com/kb/234622/
)
VC++ 6.0 Setup does not copy the CRT Make files
| Article Translations
|


Back to the top
