Click to See Complete Forum and Search --> : CRCExecption Resultset->MoveNext() via ODBC


josp
April 12th, 2007, 03:56 AM
Hi,
I using Oracle Instant Client 10.2.0.2 with Instant ODBC 10.2.0.2 to build application with MS VC++ 7.1 and run gives during

Resultset->MoveNext();

exception while trying to move cursor to invalid row (EOT looks to be failing).

----

Eine Ausnahme (erste Chance) bei 0x7c812a5b in app.exe: Microsoft C++ exception: CRCException @ 0x0012ebcc.
Eine Ausnahme (erste Chance) bei 0x7c812a5b in app.exe: Microsoft C++ exception: [rethrow] @ 0x00000000.

----

There are 2 records to read.

The application-code is:
if (m_Set->IsOpen())
{
if (!m_Set->IsBOF() && !m_Set->IsEOF())
{
m_Set->MoveFirst();
while(!m_Set->IsEOF())
{
....
m_Set->MoveNext();
}
}
}

And now the sequence of events:
m_Set->IsOpen() -------- ok
m_Set->MoveFirst(); ---- ok, get the first record
m_Set->MoveNext(); ---- ok, get the second record
m_Set->MoveNext(); ---- not ok, exception

cjard
April 15th, 2007, 08:07 PM
Maybe there are no more rows to move to? Have you tried seeing if there is a HasNext() or something, before you call movenext?