Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

another assertion error :(

Status
Not open for further replies.

kaya17

Programmer
Feb 9, 2004
78
0
0
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
 
how about using a bit the debugger to see what is exactly inside?

Ion Filipski
1c.bmp
 
Apropos, vsprintf() returns a negative value if an output error occurs. So that assertion is OK when you catch an error...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top