Carlos Antollini ADO classes
-
We are using the Carlos Antollini ado classes in our C/C++ program and when I try to close the database it hangs. The function never returns. I cannot figure out why. Anyone have any ideas? m_pProjectDatabase declared as: CADODatabase* m_pProjectDatabase;
if (m_pProjectDatabase != nullptr)
{
m_pProjectDatabase->Close();
}This calls the ado2 function:
void CADODatabase::Close()
{
try
{
if(IsOpen())
{
if(m_doxCatalog.m_pCatalog != NULL)
{
_ConnectionPtr pConn = m_doxCatalog.m_pCatalog->GetActiveConnection();
pConn->Close();
}
}
}
catch(CString ex)
{
throw;
}
catch(_com_error &e)
{dump\_com\_error(e); //throw (CString)"Error in CADODatabase::Close:" + (LPCSTR)e.Description(); } catch(...) { throw (CString)"Unexplained Error in CADODatabase::Close"; }
}
and from there, nothing. Off into cyberspace never to be seen again.
-
We are using the Carlos Antollini ado classes in our C/C++ program and when I try to close the database it hangs. The function never returns. I cannot figure out why. Anyone have any ideas? m_pProjectDatabase declared as: CADODatabase* m_pProjectDatabase;
if (m_pProjectDatabase != nullptr)
{
m_pProjectDatabase->Close();
}This calls the ado2 function:
void CADODatabase::Close()
{
try
{
if(IsOpen())
{
if(m_doxCatalog.m_pCatalog != NULL)
{
_ConnectionPtr pConn = m_doxCatalog.m_pCatalog->GetActiveConnection();
pConn->Close();
}
}
}
catch(CString ex)
{
throw;
}
catch(_com_error &e)
{dump\_com\_error(e); //throw (CString)"Error in CADODatabase::Close:" + (LPCSTR)e.Description(); } catch(...) { throw (CString)"Unexplained Error in CADODatabase::Close"; }
}
and from there, nothing. Off into cyberspace never to be seen again.
Did you debug this CADODatabase::Close() code?