Re: CeDeleteRecord Anomalies
- From: Kerstin Pirrung <pirrung@xxxxxxxxx>
- Date: Mon, 18 Apr 2005 05:49:04 -0700
"zaphead" <benterry1972@xxxxxxxxxxx> wrote in news:1113579353.583011.230500
@f14g2000cwb.googlegroups.com:
> I am trying to use the CeDeleteRecord function on CE4.2. Sometimes
> this function fails (repeatable depending on the database I'm using).
> The odd thing is that it fails (returns FALSE), but an immediate call
> to GetLastError also returns 0. Upon verifying the state of the record
> that should have been deleted, it is indeed still there. Even more
> strange: if I call CeDeleteRecord a SECOND time after it fails the
> first time, the call succeeds and the record is deleted! Can anyone
> explain this behavior? Note: I am implementing a routine that stores a
> CRC with each record I save. I am deliberately corrupting a record
> using a hex editor (simply changing a byte in the record). My outine
> reads records in, verifies the CRC, and if bad, deletes the record.
> This delete is the part that is failing.
>
Hi!
Does your database contain Text as well? And maybe is the sorting depending
on a string field?
I do experience similar problems - not trying to delete the record but just
access it - and I found mine problems are somehow dependent on the text
size just SOMEWHERE on some record within the database.
If you do have text, try limiting it to not more than 250 characters; in my
application, this did quench the problem (sounds like 256 to me...).
I did contact Microsoft support; they're still in the process of thinking.
Kerstin
.
- Follow-Ups:
- Re: CeDeleteRecord Anomalies
- From: Ben S. Terry
- Re: CeDeleteRecord Anomalies
- References:
- CeDeleteRecord Anomalies
- From: zaphead
- CeDeleteRecord Anomalies
- Prev by Date: D3D8.lib
- Next by Date: Regex
- Previous by thread: CeDeleteRecord Anomalies
- Next by thread: Re: CeDeleteRecord Anomalies
- Index(es):
Relevant Pages
|