BSONObjBuilder data;
data.append("Date",newtime);
data.append("OpenPrice",strOpenPrice);
data.append("HighPrice",HighPrice);
data.append("LowPrice",LowPrice);
data.append("ClosePrice",ClosePrice);
data.append("AvgPrice",strAvgPrice);
data.append("Amount",strAmount);
data.append("Hold",strHold);
BSONObjBuilder builder;
builder.append("$set",data.obj());
conn.update(ns,condition,builder.obj(),true,true);函數(shù)里這段代碼執(zhí)行完以后當(dāng)函數(shù)返回時報錯:Run-Time Check Failure #2 - Stack around the variable 'builder' was corrupted.Run-Time Check Failure #2 - Stack around the variable 'data' was corrupted.
- 2 回答
- 0 關(guān)注
- 1055 瀏覽
添加回答
舉報
0/150
提交
取消