May 26, 2004 #1 kaya17 Programmer Feb 9, 2004 78 SG GetBuffer(nMaxLen); VERIFY(_vstprintf(m_pchData, lpszFormat, argListSave) <= GetAllocLength()); ReleaseBuffer(); the error happened in the 2nd line. what might be wrong with the code? Thanks! kaya
GetBuffer(nMaxLen); VERIFY(_vstprintf(m_pchData, lpszFormat, argListSave) <= GetAllocLength()); ReleaseBuffer(); the error happened in the 2nd line. what might be wrong with the code? Thanks! kaya
May 26, 2004 #2 Cagliostro Programmer Sep 13, 2000 4,226 GB how about using a bit the debugger to see what is exactly inside? Ion Filipski Upvote 0 Downvote
May 26, 2004 #3 ArkM IS-IT--Management Oct 21, 2002 1,819 RU Apropos, vsprintf() returns a negative value if an output error occurs. So that assertion is OK when you catch an error... Upvote 0 Downvote
Apropos, vsprintf() returns a negative value if an output error occurs. So that assertion is OK when you catch an error...