mfc >> (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception, close()

by obelix » Wed, 26 Nov 2003 16:26:41 GMT

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:)


Similar Threads

1. Microsoft C++ Exception in Kernel32.dll

Hi,

I have a MFC based application,in that i am getting this 
error

First-chance exception in mytest.exe (KERNEL32.DLL): 
0xE06D7363:Microsoft C++ Exception.

at 

m_Str=new double[m_width*m_height];
where m_width=250; and m_Height=250;

Could any one please help me to solve this?


Regards
Jim

2. Microsoft C++ Exception in KERNEL32.DLL ...

3. 0xE06D7363: Microsoft C++ Exception - how to catch

Hello,
Other that catch ( ... ), how can I catch '0xE06D7363: Microsoft C++
Exception'? The original exception was thrown by trying to call methods of a
smart pointer that was NULL. So I know the source of the problem this time.
But for future reference, What will catch this exception?
-- 
Bill Swartz, PhD
Voss Scientific


4. Exception 03H in module KERNEL32.DLL

5. Unhandled exception (KERNEL32.DLL)

Hi,

I have a constructor in TESTDlg.h declared as below:

class TESTDlg : public CDialog
{
// Construction
public:
 TESTDlg(CWnd* pParent = NULL);   // standard constructor

Constructor in TESTDlg.cpp is defined as below:

TESTDlg::TESTDlg(CWnd* pParent /*=NULL*/)
 : CDialog(TESTDlg::IDD, pParent)
{
 //{{AFX_DATA_INIT(TESTDlg)
  // NOTE: the ClassWizard will add member initialization here
 //}}AFX_DATA_INIT
}

However, when I do:

TESTDlg test;
if (IDOK != test.DoModal()) return FALSE; \\<---------------- results in 
unhandled exception

in my main class, I receive unhandled exception (KERNEL32.DLL). This has 
worked fine in the past so I do not understand why I am having problems.

Thanks.

Colin 


6. Exception 03H in module KERNEL32.DLL

7. error :unhandled exception:0xE06D7363:

unhandled exception in mfcclient.exe(Kernel32.dll):0xE06D7363:Microsoft C++
exception

Ankit Aneja Software Developer


8. unhandled exception at 0x7832530f (mfc80ud.dll) when close application