A VC++ 6.0 application is crashing when doing a CString::Format operation with %d format specifier. This does not occur always but occurs when the application memory grows upto 100MB or more. ALso sometimes same crash observed when a CString copy is done. The call stack would look like this
mfc42u!CFixedAlloc::Alloc+82
mfc42u!CString::AllocBuffer+3f 00000038 00000038 005b5b64
mfc42u!CString::AllocBeforeWrite+31 00000038 0a5bfdbc 005b5b64
mfc42u!CString::AssignCopy+13 00000038 057cb83f 0a5bfe90
mfc42u!CString::operator=+4b
and this throws an access violation exception.