DAMAGE after normal block

From: Michael J. Conroy (m_j_conroy_at_yahoo.com)
Date: 05/10/04


Date: Mon, 10 May 2004 03:16:09 GMT

Help!!!

Grrr...

Within a View class:

::OnInitialUpdate
 m_rsEntity.Open(dbOpenDynaset, _T("SELECT * FROM entity WHERE
type='message'"), 0);
 m_rsEntity.MoveLast();

m_rsEntity is a CDaoRecordset-derived class

I can open and close the recordset ad nauseum. HOWEVER, if I do this:

CString sz;
sz="test='A'";
m_rsEntity.FindFirst(sz);
m_rsEntity.Close();
// This next line bombs with the DAMAGE message
 m_rsEntity.Open(dbOpenDynaset, _T("SELECT * FROM entity WHERE
type='message'"), 0);

Any idea why this might happen? Only AFTER I execute ANY FindFirst does
this happen...

Cheers,
M.


Loading