Crash using MS ADO Data Control/MS DataGrid 6.0
This call is already present.
I just followed the instructions in topic "Using ADO Databinding in Visual
C++" from Oct2000 MSDN.
As I said, the dialog works fine when run in test mode from the dlg editor.
It id only when the App is built and run that it crashes. Call stack below.
CPtrList::GetHeadPosition() line 274 + 10 bytes
CDataSourceControl::UpdateCursor() line 2697 + 27 bytes
COleControlSite::XRowsetNotify::OnRowChange(COleControlSite::XRowsetNotify *
const 0x00781f5c, IRowset * 0x016c6dbc, unsigned long 1, const unsigned long
* 0x0078193c, unsigned long 4, unsigned long 4, IRowset * 0x016c6dbc) line
3474
MSADCE! 1f34103d()
MSADCE! 1f33f8dc()
ATL::CRowset::MoveNext(long 0, unsigned char 1) line 1101 + 56 bytes
ATL::CRowset::MoveNext() line 1084
ATL::CRowset::MoveFirst() line 1133
CDataSourceControl::GetMetaData() line 2224
CDataSourceControl::Initialize() line 2136 + 8 bytes
COleControlSite::EnableDSC() line 1335
CDataBoundProperty::GetCursor() line 3025
CDataBoundProperty::Notify() line 3005 + 8 bytes
CDataBoundProperty::SetDSCSite(COleControlSite * 0x00781e80
{COleControlSite}) line 2977
COccManager::BindControls(CWnd * 0x0065fcec {CGridTestDlg hWnd=0x00000684})
line 497
COccManager::CreateDlgControls(CWnd * 0x0065fcec {CGridTestDlg
hWnd=0x00000684}, void * 0x00424930, _AFX_OCC_DIALOG_INFO * 0x0065fc08) line
466
COccManager::CreateDlgControls(CWnd * 0x0065fcec {CGridTestDlg
hWnd=0x00000684}, const char * 0x00000066, _AFX_OCC_DIALOG_INFO *
0x0065fc08) line 352 + 23 bytes
CDialog::HandleInitDialog(unsigned int 3092, unsigned int 3092) line 612 +
29 bytes
CWnd::OnWndMsg(unsigned int 272, unsigned int 3092, long 0, long *
0x0065f8f4) line 1815 + 17 bytes
CWnd::WindowProc(unsigned int 272, unsigned int 3092, long 0) line 1585 + 30
bytes
AfxCallWndProc(CWnd * 0x0065fcec {CGridTestDlg hWnd=0x00000684}, HWND__ *
0x00000684, unsigned int 272, unsigned int 3092, long 0) line 215 + 26 bytes
AfxWndProc(HWND__ * 0x00000684, unsigned int 272, unsigned int 3092, long 0)
line 368
AfxWndProcBase(HWND__ * 0x00000684, unsigned int 272, unsigned int 3092,
long 0) line 220 + 21 bytes
KERNEL32! bff63613()
KERNEL32! bff848f7()
Jon
Quote:
> Hello,
> Do you create MFC with ActiveX supported? Add AfxEnableControlContainer();
in CyourApp::InitInstance() and try it.
Quote:
> Hope this helps.
> Regards,
> Max