May 26, 2004 #1 kaya17 Programmer Joined Feb 9, 2004 Messages 78 Location 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 Joined Sep 13, 2000 Messages 4,226 Location 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 Joined Oct 21, 2002 Messages 1,819 Location 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...