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);函数里这段代码执行完以后当函数返回时报错: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 关注
- 1037 浏览
添加回答
举报
0/150
提交
取消