which, I would think treat this a only a string and no formatting.
radrain <radrain@discussions.microsoft.com> wrote:
When using "TRACE" in debugging the call stack winds down to
AtlTraceVA method in atldebugapi.cpp to line:
ATL_CRT_ERRORCHECK_SPRINTF(_vsnprintf_s(szBuf + nLen, nCount - nLen,
nCount - nLen - 1, pszFormat, ptr));
I receive an assert with "Incorrect format specifer" while processing
the _vsnprintf_s statement and eventually results with an unhandled
exception fault.
Our original call is:
TRACE ( Str.Left(510) );
The first parameter of TRACE is supposed to be a printf-like format
string. I guess your string contains % characters in it, which are being
interpreted as format specifiers. Try
TRACE ("%s", Str.Left(510) );
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925