CeDeleteRecord() problem
- From: Steve Kelley <skelley@xxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 20 Feb 2007 08:12:18 -0500
I am having a problem with the CeDeleteRecord() on a CEDB database. My
database contains several hundred records and I can delete them 'till
the cows come home without any problems, except for one record. The seek
function finds the record based on an index and returns a valid OID but
on this one record the delete function fails. I have included the guts
of my delete function below so if anyone can tell me how to get rid of
the offending record please let me know. The strange thing is that the
seek says the record is valid and the CeOidGetInfoEx function says the
record handle is valid but the read and delete functions both fail.
<CODE>
oid = CeSeekDatabaseEx(m_dbHandle,
CEDB_SEEK_BEGINNING,
offset,
0,
NULL);
if (!oid)
{
error = GetLastError();
}
else
{
// test code
CEOIDINFO info;
memset(&info, 0, sizeof(CEOIDINFOEX));
CeOidGetInfoEx(&m_dbGUID, oid, &info);
// Results indicate a valid record
error = GetLastError();
// No error
// end test code
CeDeleteRecord(m_dbHandle, oid);
error = GetLastError();
// fails with error == 87 - ERROR_INVALID_PARAMETER
}
</CODE>
Thanks in advance.
.
- Prev by Date: Multimedia formats
- Next by Date: Writing protocol driver for Raw Packet bridging
- Previous by thread: Multimedia formats
- Next by thread: Writing protocol driver for Raw Packet bridging
- Index(es):
Relevant Pages
|