数据库访问错误: Connection is busy with results for another hstmt.
有两个CRecord的派生类,分别是一个数据库的两个表的记录集,有如下代码:
class CReCordA : public CReCord
......
class CReCordB : public CReCord
......
CReCordA rea;
rea.open()
....
try{
rea.requery();
while(!rea.IsEof())
{
.....
CReCordB reb;
reb.open(...) //程序运行到此处异常,报错误信息。
reb.requery()
....
}
}
catch()
{......
}
但此错误有时出现,有时又不会出现,我该如何解决。。