these are the members of my class:
===============================
class X
{
.....
CResultSet m_Command[10][2];
ADODB::_ParameterPtr m_CP_ParentId[10][2];
....};
================================
than in constructor of this class I do the following:
============================
X::X{
....
for (int i=0;i<10;i++) {
m_Command[i][0].openCommand("select * from dynamic_data where
parent_id = ?");
m_CP_ParentId[i][0] =
m_Command[i][0].appendParameter("parent_id",ADODB::adInteger,
ADODB::adParamInput,4,(long)0);
m_Command[i][1].openCommand("select * from dynamic_data where id =
?");
m_CP_ParentId[i][1] =
m_Command[i][1].appendParameter("parent_id",ADODB::adInteger,
ADODB::adParamInput,4,(long)0);
}
...
}
================================
Than in the CResultSet class destructor is a close() function:
CResultSet::~CResultSet()
{
if (m_iADOCERS != NULL) {
try {
m_iADOCERS->Close();
}
catch (_com_error e) {
CUtils::logAdoComError(e, m_iADOCERS);
}
}
}
===============================
and while closing I get 20 exceptions just becouse of the 2D table.
Any suggestions why these exceptions appear, please bug me.
When I make the table smaller, say: [5][2] I get only 10 exceptions.
best regards Simon:)