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.
慕的地6264312
相关分类