當我試圖調試在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