当我试图调试在Linux机器上编写的C程序(现在,我正在使用Visual C++ Express)时,我首先得到一个堆栈溢出错误。所以,当我点击继续,我得到了另一条错误消息,错误 - 当前位置没有可用的源代码
访问冲突读取位置0x00030000
所以我一步决定要调试一步。因此,当我尝试它时,它显示我的错误
当前位置没有可用的源代码。
这个错误的原因是什么?
#if 1
while(1)
#endif
{
fillList();
#if 1
{
op_ds_bulk(ops, &total, 1);
temp = res("Bulk Write:", total, fp);
index = 0;
}
#endif
void op_ds_bulk(u_int ops, u_int * totalp, int update)
{
char encode_db[] = "encode";
if(update)
{
database_insert_bluk(list, ops);
database_sync();
*totalp = ops;
}
else
{
CHUNK prefetch[4096];
int random = rand() % (h-ops+1);
__os_clock(NULL, &start_time.secs, &start_time.usecs);
database_select_end(65546, random, prefetch, ops);
__os_clock(NULL, &end_time.secs, &end_time.usecs);
*totalp = ops;
}
}
}
我假设你拿到源代码并重新编译它,并没有使用交叉编译器或类似的东西。 – rerun 2011-03-03 06:19:35
发布代码将有所帮助。 – Mahesh 2011-03-03 06:21:59
它超过700线路编码。 :/不能'把那些因为论坛只允许超过500个字符 – kevin 2011-03-03 06:28:14