查看单个帖子
旧 2009-05-04, 04:13 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】assert in dbdatabaseconv.cpp line 612

assert in dbdatabaseconv.cpp line 612
assert in dbdatabaseconv.cpp line 612
is this a known issue?
the assert expression in myassert callback is "invalid execution".
the 'debug assertion failed' window shows:
expression: string != null && sizeinbytes > 0
it seems to run ok in release mode, but it crashes in the debugger.
you may safely ignore the assert. it signals that there is some invalid round-trip data in the file and the data is going to be skipped.
vladimir
hi vladimir
thanks for your reply.
if anyone's interested: i suspect the crash we were getting in debug-mode was caused by unicode string? as we don't build with unicode.
to fix, i added a myassert handler to trap the assert message. note that i cloned the myassert code from your examples, and the format specifier "%ls" (from old example code) began crashing the debugger when i hooked in the myassert function. once i changed "%ls" to "%s" everything was ok.
the original debug-mode crash was only occurring when starting our program by double-clicking a filename. so i don't understand how all this ties together, but it is working fine now.
thanks for your help!
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)