Visual Studio Output Window Error - C++ -
using visual studio 2008, keep seeing error in output window:
_crtdbgreport: string long or io error
i have lot of trace macros scattered throughout code used dump information error conditions: file path, line number, error, etc. need trace down source of error because may information trying dump output window long. maximum length of string trace macro can accept? here example of how typically use macro:
trace(_t("createnotifywindow : failed create handle notify window thread.\r\n\terror: %d\r\n\tfile: %s\r\n\tline: %d\r\n"), ::getlasterror(), _t(__file__), __line__); any thoughts appreciated. thanks.
ultimately i'll bet problem passing object string instead of string.c_str() macro. trace uses variadic argument passing to, ultimately, calls in vsnprintf() family %s processing. cannot deal objects because c can not.
the maximum length outputdebugstring 4k bytes minus fraction, due implementation.
Comments
Post a Comment