FIX: Assertion Using Multiple %1 (or %2) in AfxFormatString1 (116212)
The information in this article applies to:
- Microsoft Visual C++ 1.0
- Microsoft Visual C++ 1.52
- Microsoft Visual C++ 1.5
- Microsoft Visual C++ 1.51
This article was previously published under Q116212 SYMPTOMS
When you use the AfxFormatString1() or AfxFormatString2() function, with
more than one %1 or %2 parameter in the template string, the following
assertion occurs:
File strcore1.cpp, Line 269, Assertion Failed!
CAUSE
These functions do not allocate enough memory for multiple parameters to be
used. However, in the case of AfxFormatString2(), two parameters may be
used (one %1 and one %2) successfully. It is the use of two %1's or two
%2's that causes the problem.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This problem has been corrected in MFC
3.0, included with Visual C++ version 2.0.
Modification Type: | Major | Last Reviewed: | 10/17/2003 |
---|
Keywords: | kbBug kbfix kbNoUpdate kbVC200fix KB116212 |
---|
|